mirror of
https://github.com/red-data-tools/YouPlot.git
synced 2025-05-06 07:10:10 +08:00
48 lines
1.3 KiB
Markdown
48 lines
1.3 KiB
Markdown
# uplot
|
|
|
|
[](https://travis-ci.com/kojix2/uplot)
|
|
[](https://badge.fury.io/rb/u-plot)
|
|
[](https://rubydoc.info/gems/u-plot)
|
|
[](LICENSE.txt)
|
|
|
|
Create ASCII charts on the terminal with data from standard streams in the pipeline.
|
|
|
|
:bar_chart: Powered by [UnicodePlot](https://github.com/red-data-tools/unicode_plot.rb)
|
|
|
|
:construction: Under development! :construction:
|
|
|
|
## Installation
|
|
|
|
```
|
|
gem install u-plot
|
|
```
|
|
|
|
## Usage
|
|
|
|
**histogram**
|
|
|
|
```sh
|
|
ruby -r numo/narray -e "puts Numo::DFloat.new(1000).rand_norm.to_a" \
|
|
| uplot hist --nbins 15
|
|
```
|
|
|
|
<img src="https://i.imgur.com/wpsoGJq.png" width="75%" height="75%"></img>
|
|
|
|
**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
|
|
```
|
|
|
|
## Development
|
|
|
|
## Contributing
|
|
|
|
Bug reports and pull requests are welcome on GitHub at [https://github.com/kojix2/uplot](https://github.com/kojix2/uplot).
|
|
|
|
## License
|
|
|
|
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|