3 Commits

Author SHA1 Message Date
kojix2
e0914beec8 v0.2.1 2020-08-16 16:08:37 +09:00
kojix2
e146bc66f3 Fixed subcommands 2020-08-16 16:08:14 +09:00
kojix2
bc0204af53 Update README.md 2020-08-16 14:03:34 +09:00
3 changed files with 14 additions and 4 deletions

View File

@@ -2,6 +2,8 @@
[![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)
[![Docs Latest](https://img.shields.io/badge/docs-latest-blue.svg)](https://rubydoc.info/gems/u-plot)
[![The MIT License](https://img.shields.io/badge/license-MIT-blue.svg)](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

View File

@@ -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)

View File

@@ -1,3 +1,3 @@
module Uplot
VERSION = '0.2.0'.freeze
VERSION = '0.2.1'.freeze
end