mirror of
https://github.com/red-data-tools/YouPlot.git
synced 2025-05-06 06:46:11 +08:00
Update README.md
This commit is contained in:
parent
f35ee1fdb5
commit
8bf6b51d65
35
README.md
35
README.md
@ -1,5 +1,9 @@
|
|||||||
# Uplot
|
# Uplot
|
||||||
|
|
||||||
|
Create ASCII charts on the terminal with data from standard streams in the pipeline.
|
||||||
|
|
||||||
|
:bar_chart: Powered by [UnicodePlot](https://github.com/kojix2/uplot)
|
||||||
|
|
||||||
:construction: Under development
|
:construction: Under development
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
@ -10,12 +14,39 @@ gem install uplot
|
|||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
|
### 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
|
||||||
|
```
|
||||||
|
|
||||||
## Development
|
## Development
|
||||||
|
|
||||||
## Contributing
|
## Contributing
|
||||||
|
|
||||||
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/uplot.
|
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
||||||
|
Loading…
Reference in New Issue
Block a user