summaryrefslogtreecommitdiffstats
path: root/README.template.md
diff options
context:
space:
mode:
authorSergey Grebenshchikov <sgreben@gmail.com>2018-03-30 21:10:19 +0200
committerSergey Grebenshchikov <sgreben@gmail.com>2018-03-30 21:10:19 +0200
commit0f9e84d2a4754c51cba79615820bcd53b0d9dd48 (patch)
treeb5c944dd43682c09dd6543831f43450a667a1ac1 /README.template.md
parentdf8bf8e12216702a3291e214624825304c3ac886 (diff)
Add heatmap plots1.1.8
Diffstat (limited to 'README.template.md')
-rw-r--r--README.template.md40
1 files changed, 39 insertions, 1 deletions
diff --git a/README.template.md b/README.template.md
index ea0db50..6d83d29 100644
--- a/README.template.md
+++ b/README.template.md
@@ -19,6 +19,7 @@ Dead simple terminal plots from JSON (or CSV) data. Bar charts, line charts, and
- [Array data, XY pairs](#array-data-xy-pairs)
- [Y values only (X=index)](#y-values-only-xindex-1)
- [Scatter plot](#scatter-plot)
+ - [Heatmap](#heatmap)
- [Histogram](#histogram)
- [Auto bin number](#auto-bin-number)
- [Fixed bin number](#fixed-bin-number)
@@ -57,7 +58,7 @@ unzip jp_${VERSION}_windows_x86_64.zip
```text
Usage of jp:
-type value
- Plot type. One of [line bar scatter hist] (default line)
+ Plot type. One of [line bar scatter hist hist2d] (default line)
-x string
x values (JSONPath expression)
-y string
@@ -282,6 +283,43 @@ $ cat examples/mvrnorm.json | jp -xy '..[x,y]' -type scatter
-4.08815 3.79083
```
+### Heatmap
+
+```
+$ cat examples/mvrnorm.json | jp -xy '..[x,y]' -type hist2d
+
+ 3.3608│ ···· ········ ····
+ │ ···· ········ ····
+ │ ···· ········ ····
+ │ ················ ····
+ │ ················ ····
+ │ ································
+ │ ································
+ │ ················░░░░░░░░░░░░················
+ │ ················░░░░░░░░░░░░················
+ │ ············▒▒▒▒▓▓▓▓▒▒▒▒▒▒▒▒░░░░············
+ │ ············▒▒▒▒▓▓▓▓▒▒▒▒▒▒▒▒░░░░············
+ │···············▒▒▒▒▒▒▒▒▓▓▓▓▓▓▓▓▓▓▓▓▒▒▒▒············
+ │···············▒▒▒▒▒▒▒▒▓▓▓▓▓▓▓▓▓▓▓▓▒▒▒▒············
+ │ ········░░░░▓▓▓▓▓▓▓▓████▓▓▓▓▒▒▒▒············
+ │ ········░░░░▓▓▓▓▓▓▓▓████▓▓▓▓▒▒▒▒············
+ │ ········░░░░▓▓▓▓▓▓▓▓████▓▓▓▓▒▒▒▒············
+ │ ············▒▒▒▒▒▒▒▒▓▓▓▓▓▓▓▓▒▒▒▒▒▒▒▒············
+ │ ············▒▒▒▒▒▒▒▒▓▓▓▓▓▓▓▓▒▒▒▒▒▒▒▒············
+ │ ············▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒················
+ │ ············▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒················
+ │ ····································
+ │ ····································
+ │ ····························
+ │ ····························
+ │ ···· ···· ····
+ │ ···· ···· ····
+ │ ····
+ │ ····
+ -4.0045└───────────────────────────────────────────────────
+ -3.8421 3.5909
+```
+
### Histogram
#### Auto bin number