mirror of
https://github.com/red-data-tools/YouPlot.git
synced 2025-05-06 23:21:13 +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:
parent
54e1865640
commit
43f9103190
@ -29,7 +29,7 @@ ruby -r numo/narray -e "puts Numo::DFloat.new(1000).rand_norm.to_a" \
|
|||||||
```sh
|
```sh
|
||||||
echo "from numpy import random;" \
|
echo "from numpy import random;" \
|
||||||
"n = random.randn(10000);" \
|
"n = random.randn(10000);" \
|
||||||
"print('\n'.join(str(i) for i in n))" \
|
"print('\\\n'.join(str(i) for i in n))" \
|
||||||
| python \
|
| python \
|
||||||
| uplot hist --nbins 20
|
| uplot hist --nbins 20
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user