From 428d525c5f28cbd65886fe99f618cab1bbbf81fc Mon Sep 17 00:00:00 2001
From: kojix2 <2xijok@gmail.com>
Date: Mon, 12 Oct 2020 14:24:02 +0900
Subject: [PATCH] Add sample codes to README
---
README.md | 38 +++++++++++++++++++++++++++++++++-----
1 file changed, 33 insertions(+), 5 deletions(-)
diff --git a/README.md b/README.md
index 640bdaf..bcbddb7 100644
--- a/README.md
+++ b/README.md
@@ -26,25 +26,53 @@ ruby -r numo/narray -e "puts Numo::DFloat.new(1000).rand_norm.to_a" \
| uplot hist --nbins 15
```
-
+
-
+```sh
+echo "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 \
+| cut -f1-4 -d, \
+| uplot scatter -H -d, -t IRIS
+```
+
+
**line**
-
+```sh
+curl -s https://www.mhlw.go.jp/content/pcr_positive_daily.csv \
+| cut -f2 -d, \
+| uplot line -w 50 -h 15 -t 'PCR positive tests' --xlabel Date --ylabel number
+```
+
+
**box**
-
+```sh
+curl -s https://raw.githubusercontent.com/uiuc-cse/data-fa14/gh-pages/data/iris.csv \
+| cut -f1-4 -d, \
+| uplot box -H -d, -t IRIS
+```
+
+
## Development
+Let's keep it simple.
+
## Contributing
Bug reports and pull requests are welcome on GitHub at [https://github.com/kojix2/uplot](https://github.com/kojix2/uplot).