YouPlot/README.md

56 lines
2.2 KiB
Markdown
Raw Normal View History

2020-07-28 22:07:15 +08:00
# Uplot
2020-07-29 11:43:00 +08:00
[![Build Status](https://travis-ci.com/kojix2/uplot.svg?branch=master)](https://travis-ci.com/kojix2/uplot)
[![Gem Version](https://badge.fury.io/rb/u-plot.svg)](https://badge.fury.io/rb/u-plot)
2020-07-29 11:16:10 +08:00
Create ASCII charts on the terminal with data from standard streams in the pipeline.
:bar_chart: Powered by [UnicodePlot](https://github.com/kojix2/uplot)
2020-07-29 10:00:00 +08:00
:construction: Under development
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-07-29 11:16:10 +08:00
### histogram
```sh
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
```
2020-07-28 22:07:15 +08:00
## Development
## Contributing
## License
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).