summaryrefslogtreecommitdiffstats
path: root/README.template.md
diff options
context:
space:
mode:
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