From 0f9e84d2a4754c51cba79615820bcd53b0d9dd48 Mon Sep 17 00:00:00 2001 From: Sergey Grebenshchikov Date: Fri, 30 Mar 2018 21:10:19 +0200 Subject: Add heatmap plots --- README.template.md | 40 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 39 insertions(+), 1 deletion(-) (limited to 'README.template.md') 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 -- cgit v1.2.3