2020-08-15 22:47:23 +08:00
|
|
|
# uplot
|
2020-07-28 22:07:15 +08:00
|
|
|
|
2020-07-29 11:43:00 +08:00
|
|
|
[](https://travis-ci.com/kojix2/uplot)
|
|
|
|
[](https://badge.fury.io/rb/u-plot)
|
2020-08-16 13:03:34 +08:00
|
|
|
[](https://rubydoc.info/gems/u-plot)
|
|
|
|
[](LICENSE.txt)
|
2020-07-29 11:43:00 +08:00
|
|
|
|
2020-07-29 11:16:10 +08:00
|
|
|
Create ASCII charts on the terminal with data from standard streams in the pipeline.
|
|
|
|
|
2020-07-29 20:36:27 +08:00
|
|
|
:bar_chart: Powered by [UnicodePlot](https://github.com/red-data-tools/unicode_plot.rb)
|
2020-07-29 11:16:10 +08:00
|
|
|
|
2020-08-04 20:37:45 +08:00
|
|
|
:construction: Under development! :construction:
|
2020-07-28 22:07:15 +08:00
|
|
|
|
|
|
|
## Installation
|
|
|
|
|
|
|
|
```
|
2020-07-29 11:43:00 +08:00
|
|
|
gem install u-plot
|
2020-07-29 10:00:00 +08:00
|
|
|
```
|
2020-07-28 22:07:15 +08:00
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
2020-08-16 13:03:34 +08:00
|
|
|
**histogram**
|
2020-07-29 11:16:10 +08:00
|
|
|
|
|
|
|
```sh
|
|
|
|
ruby -r numo/narray -e "puts Numo::DFloat.new(1000).rand_norm.to_a" \
|
|
|
|
| uplot hist --nbins 15
|
|
|
|
```
|
|
|
|
|
2020-10-10 22:35:26 +08:00
|
|
|
<img src="https://i.imgur.com/wpsoGJq.png" width="75%" height="75%"></img>
|
2020-07-29 11:16:10 +08:00
|
|
|
|
2020-08-16 13:03:34 +08:00
|
|
|
**scatter**
|
|
|
|
|
|
|
|
```sh
|
|
|
|
wget https://raw.githubusercontent.com/uiuc-cse/data-fa14/gh-pages/data/iris.csv -qO - \
|
|
|
|
| cut -f1-4 -d, \
|
|
|
|
| uplot scatter -H -d, -t IRIS -m 10
|
|
|
|
```
|
|
|
|
|
2020-07-28 22:07:15 +08:00
|
|
|
## Development
|
|
|
|
|
|
|
|
## Contributing
|
|
|
|
|
2020-08-15 22:47:23 +08:00
|
|
|
Bug reports and pull requests are welcome on GitHub at [https://github.com/kojix2/uplot](https://github.com/kojix2/uplot).
|
|
|
|
|
2020-07-28 22:07:15 +08:00
|
|
|
## License
|
|
|
|
|
|
|
|
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|