mirror of
https://github.com/red-data-tools/YouPlot.git
synced 2025-09-19 02:18:08 +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://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.
|
||||
|
||||
@@ -17,7 +19,7 @@ gem install u-plot
|
||||
|
||||
## Usage
|
||||
|
||||
### histogram
|
||||
**histogram**
|
||||
|
||||
```sh
|
||||
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
|
||||
```
|
||||
|
||||
**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
|
||||
|
@@ -259,9 +259,9 @@ module Uplot
|
||||
Plot.line(data, params)
|
||||
when :lines, :lineplots
|
||||
Plot.lines(data, params, fmt)
|
||||
when :scatter, :scatterplot
|
||||
when :scatter, :s
|
||||
Plot.scatter(data, params, fmt)
|
||||
when :density
|
||||
when :density, :d
|
||||
Plot.density(data, params, fmt)
|
||||
when :box, :boxplot
|
||||
Plot.boxplot(data, params)
|
||||
|
@@ -1,3 +1,3 @@
|
||||
module Uplot
|
||||
VERSION = '0.2.0'.freeze
|
||||
VERSION = '0.2.1'.freeze
|
||||
end
|
||||
|
Reference in New Issue
Block a user