A command line tool that draw plots on the terminal.
Go to file
kojix2 84196c197d Revert "Show message when No input data provided"
Uplot should expect cases where data takes a long time to reach the standard input.
This mechanism is not appropriate.

This reverts commit c40c59a21d.
2020-10-12 20:44:31 +09:00
.github Update README 2020-08-15 23:47:23 +09:00
exe Rubocop auto correct 2020-09-19 00:08:09 +09:00
lib Revert "Show message when No input data provided" 2020-10-12 20:44:31 +09:00
test Rubocop auto correct 2020-09-19 00:08:09 +09:00
.gitignore Update .gitignore 2020-08-03 09:42:55 +09:00
.travis.yml Configure travis.yml 2020-07-29 11:55:11 +09:00
Gemfile Rubocop auto correct 2020-09-19 00:08:09 +09:00
LICENSE.txt first plot 2020-07-28 23:07:15 +09:00
Rakefile Rubocop auto correct 2020-09-19 00:08:09 +09:00
README.md Removed 'under development' in README 2020-10-12 14:57:03 +09:00
uplot.gemspec Drop support for ruby 2.3 2020-10-10 23:18:27 +09:00

uplot

Build Status Gem Version Docs Latest The MIT License

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

MIT License.