mirror of
https://github.com/red-data-tools/YouPlot.git
synced 2025-09-18 09:38:09 +08:00
Output \n as a string in example code
Current output is: $ echo "from numpy import random;" \ > "n = random.randn(10000);" \ > "print('\n'.join(str(i) for i in n))" from numpy import random; n = random.randn(10000); print(' '.join(str(i) for i in n)) After this change, I think it is originally expected string: $ echo "from numpy import random;" \ > "n = random.randn(10000);" \ > "print('\\\n'.join(str(i) for i in n))" from numpy import random; n = random.randn(10000); print('\n'.join(str(i) for i in n))
This commit is contained in:
@@ -29,7 +29,7 @@ ruby -r numo/narray -e "puts Numo::DFloat.new(1000).rand_norm.to_a" \
|
||||
```sh
|
||||
echo "from numpy import random;" \
|
||||
"n = random.randn(10000);" \
|
||||
"print('\n'.join(str(i) for i in n))" \
|
||||
"print('\\\n'.join(str(i) for i in n))" \
|
||||
| python \
|
||||
| uplot hist --nbins 20
|
||||
```
|
||||
|
Reference in New Issue
Block a user