A command line tool that draw plots on the terminal.
Go to file
2020-08-16 13:43:50 +09:00
.github Update README 2020-08-15 23:47:23 +09:00
exe Prevent option parser from starting automatically 2020-08-15 23:06:55 +09:00
lib v0.2.0 2020-08-16 13:43:50 +09:00
test Add iris.csv 2020-08-03 09:43:08 +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 v0.1.4 2020-08-14 11:49:18 +09:00
LICENSE.txt first plot 2020-07-28 23:07:15 +09:00
Rakefile Update gemspec 2020-07-28 23:14:47 +09:00
README.md Update README 2020-08-15 23:47:23 +09:00
uplot.gemspec various changes... 2020-08-03 10:36:36 +09:00

uplot

Build Status Gem Version

Create ASCII charts on the terminal with data from standard streams in the pipeline.

📊 Powered by UnicodePlot

🚧 Under development! 🚧

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
                ┌                                        ┐ 
   [-4.5, -4.0) ┤ 1                                        
   [-4.0, -3.5) ┤ 0                                        
   [-3.5, -3.0) ┤ 1                                        
   [-3.0, -2.5) ┤▇▇ 9                                      
   [-2.5, -2.0) ┤▇▇▇ 15                                    
   [-2.0, -1.5) ┤▇▇▇▇▇▇▇▇▇ 50                              
   [-1.5, -1.0) ┤▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 97                     
   [-1.0, -0.5) ┤▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 154          
   [-0.5,  0.0) ┤▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 193   
   [ 0.0,  0.5) ┤▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 165        
   [ 0.5,  1.0) ┤▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 152          
   [ 1.0,  1.5) ┤▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 86                       
   [ 1.5,  2.0) ┤▇▇▇▇▇▇▇▇▇ 51                              
   [ 2.0,  2.5) ┤▇▇▇▇ 21                                   
   [ 2.5,  3.0) ┤▇ 3                                       
   [ 3.0,  3.5) ┤ 2                                        
                └                                        ┘ 
                                Frequency

Development

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/kojix2/uplot.

License

The gem is available as open source under the terms of the MIT License.