From 3f0cefbad4f641ca6c88bee6a724e345b6312315 Mon Sep 17 00:00:00 2001
From: kojix2 <2xijok@gmail.com>
Date: Sat, 12 Dec 2020 21:22:02 +0900
Subject: [PATCH] Test README
---
README.md | 92 +++++++++++++++----------------------------------------
1 file changed, 24 insertions(+), 68 deletions(-)
diff --git a/README.md b/README.md
index 64d1a92..bdc4057 100644
--- a/README.md
+++ b/README.md
@@ -17,36 +17,21 @@ gem install youplot
## Screenshots
-**histogram**
+### barplot
```sh
-ruby -r numo/narray -e "puts Numo::DFloat.new(1000).rand_norm.to_a" \
- | uplot hist --nbins 15
+
```
-
+### histogram
```sh
-echo -e "from numpy import random;" \
- "n = random.randn(10000);" \
- "print('\\\n'.join(str(i) for i in n))" \
-| python \
-| uplot hist --nbins 20
-```
-
-
-
-**scatter**
-
-```sh
-curl -s https://raw.githubusercontent.com/uiuc-cse/data-fa14/gh-pages/data/iris.csv \
+curl -s https://raw.githubusercontent.com/kojix2/youplot/main/test/fixtures/iris.csv \
| cut -f1-4 -d, \
| uplot scatter -H -d, -t IRIS
```
-
-
-**line**
+### lineplot
```sh
curl -s https://www.mhlw.go.jp/content/pcr_positive_daily.csv \
@@ -54,19 +39,31 @@ curl -s https://www.mhlw.go.jp/content/pcr_positive_daily.csv \
| uplot line -w 50 -h 15 -t 'PCR positive tests' --xlabel Date --ylabel number
```
-
-
-**box**
+### scatter
```sh
-curl -s https://raw.githubusercontent.com/uiuc-cse/data-fa14/gh-pages/data/iris.csv \
+curl -s https://raw.githubusercontent.com/kojix2/youplot/main/test/fixtures/iris.csv \
| cut -f1-4 -d, \
-| uplot box -H -d, -t IRIS
+| uplot scatter -H -d, -t IRIS
```
-
+### density
-**colors**
+```sh
+curl -s https://raw.githubusercontent.com/kojix2/youplot/main/test/fixtures/iris.csv \
+| cut -f1-4 -d, \
+| uplot density -H -d, -t IRIS
+```
+
+### boxplot
+
+```sh
+curl -s https://raw.githubusercontent.com/kojix2/youplot/main/test/fixtures/iris.csv \
+| cut -f1-4 -d, \
+| uplot boxplot -H -d, -t IRIS
+```
+
+### colors
```sh
uplot colors
@@ -78,47 +75,6 @@ uplot colors
`uplot --help`
-```
-Program: YouPlot (Tools for plotting on the terminal)
-Version: 0.2.7 (using UnicodePlot 0.0.4)
-Source: https://github.com/kojix2/youplot
-
-Usage: uplot [options]
-
-Commands:
- barplot bar
- histogram hist
- lineplot line
- lineplots lines
- scatter s
- density d
- boxplot box
- colors show the list of available colors
-
- count c baplot based on the number of occurrences
- (slower than `sort | uniq -c | sort -n -k1`)
-
-Options:
- -O, --pass [VAL] file to output standard input data to [stdout]
- for inserting YouPlot in the middle of Unix pipes
- -o, --output VAL file to output results to [stderr]
- -d, --delimiter VAL use DELIM instead of TAB for field delimiter
- -H, --headers specify that the input has header row
- -T, --transpose transpose the axes of the input data
- -t, --title VAL print string on the top of plot
- -x, --xlabel VAL print string on the bottom of the plot
- -y, --ylabel VAL print string on the far left of the plot
- -w, --width VAL number of characters per row
- -h, --height VAL number of rows
- -b, --border VAL specify the style of the bounding box
- -m, --margin VAL number of spaces to the left of the plot
- -p, --padding VAL space of the left and right of the plot
- -c, --color VAL color of the drawing
- --[no-]labels hide the labels
- --fmt VAL xyxy : header is like x1, y1, x2, y2, x3, y3...
- xyy : header is like x, y1, y2, y2, y3...
-```
-
Use `--help` to print command-specific options.
`uplot hist --help`