mirror of
https://github.com/red-data-tools/YouPlot.git
synced 2025-11-01 09:26:26 +08:00
84196c197d7646187200ee7e66554777f329429a
Uplot should expect cases where data takes a long time to reach the standard input.
This mechanism is not appropriate.
This reverts commit c40c59a21d.
uplot
Create ASCII charts on the terminal with data from standard streams in the pipeline.
📊 Powered by UnicodePlot
Installation
gem install u-plot
Usage
histogram
ruby -r numo/narray -e "puts Numo::DFloat.new(1000).rand_norm.to_a" \
| uplot hist --nbins 15
echo "from numpy import random;" \
"n = random.randn(10000);" \
"print('\n'.join(str(i) for i in n))" \
| python \
| uplot hist --nbins 20
scatter
curl -s https://raw.githubusercontent.com/uiuc-cse/data-fa14/gh-pages/data/iris.csv \
| cut -f1-4 -d, \
| uplot scatter -H -d, -t IRIS
line
curl -s https://www.mhlw.go.jp/content/pcr_positive_daily.csv \
| cut -f2 -d, \
| uplot line -w 50 -h 15 -t 'PCR positive tests' --xlabel Date --ylabel number
box
curl -s https://raw.githubusercontent.com/uiuc-cse/data-fa14/gh-pages/data/iris.csv \
| cut -f1-4 -d, \
| uplot box -H -d, -t IRIS
Development
Let's keep it simple.
Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/kojix2/uplot.
License
Languages
Ruby
100%