mirror of
https://github.com/red-data-tools/YouPlot.git
synced 2025-09-21 20:38:10 +08:00
Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
e0914beec8 | ||
![]() |
e146bc66f3 | ||
![]() |
bc0204af53 |
12
README.md
12
README.md
@@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
[](https://travis-ci.com/kojix2/uplot)
|
[](https://travis-ci.com/kojix2/uplot)
|
||||||
[](https://badge.fury.io/rb/u-plot)
|
[](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.
|
Create ASCII charts on the terminal with data from standard streams in the pipeline.
|
||||||
|
|
||||||
@@ -17,7 +19,7 @@ gem install u-plot
|
|||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
### histogram
|
**histogram**
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
ruby -r numo/narray -e "puts Numo::DFloat.new(1000).rand_norm.to_a" \
|
ruby -r numo/narray -e "puts Numo::DFloat.new(1000).rand_norm.to_a" \
|
||||||
@@ -46,6 +48,14 @@ ruby -r numo/narray -e "puts Numo::DFloat.new(1000).rand_norm.to_a" \
|
|||||||
Frequency
|
Frequency
|
||||||
```
|
```
|
||||||
|
|
||||||
|
**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
|
## Development
|
||||||
|
|
||||||
## Contributing
|
## Contributing
|
||||||
|
@@ -259,9 +259,9 @@ module Uplot
|
|||||||
Plot.line(data, params)
|
Plot.line(data, params)
|
||||||
when :lines, :lineplots
|
when :lines, :lineplots
|
||||||
Plot.lines(data, params, fmt)
|
Plot.lines(data, params, fmt)
|
||||||
when :scatter, :scatterplot
|
when :scatter, :s
|
||||||
Plot.scatter(data, params, fmt)
|
Plot.scatter(data, params, fmt)
|
||||||
when :density
|
when :density, :d
|
||||||
Plot.density(data, params, fmt)
|
Plot.density(data, params, fmt)
|
||||||
when :box, :boxplot
|
when :box, :boxplot
|
||||||
Plot.boxplot(data, params)
|
Plot.boxplot(data, params)
|
||||||
|
@@ -1,3 +1,3 @@
|
|||||||
module Uplot
|
module Uplot
|
||||||
VERSION = '0.2.0'.freeze
|
VERSION = '0.2.1'.freeze
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user