mirror of
https://github.com/red-data-tools/YouPlot.git
synced 2025-11-19 06:48:07 +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:
@@ -31,7 +31,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