No unexpected min/max exceptions.
},
'spark:s' => sub {
$opt{spark} = [split //,
},
'spark:s' => sub {
$opt{spark} = [split //,
- $_[1] || ($opt{ascii} ? ' ..oOO' : ' ▁▂▃▄▅▆▇█')
+ $_[1] || ($opt{ascii} ? ' .oO' : ' ▁▂▃▄▅▆▇█')
];
},
'palette=s' => sub {
];
},
'palette=s' => sub {
say '' if $opt{width} and $nr and $nr % $opt{width} == 0;
print color($color), $opt{spark}->[
!$val || !$#{$opt{spark}} ? 0 : # blank
say '' if $opt{width} and $nr and $nr % $opt{width} == 0;
print color($color), $opt{spark}->[
!$val || !$#{$opt{spark}} ? 0 : # blank
- $val == $order[0] ? -1 : # max
- $val == $order[-1] ? 1 : # min
- $#{$opt{spark}} < 3 ? 1 :
- $rel * ($#{$opt{spark}} - 3) + 2.5
+ $#{$opt{spark}} < 2 ? 1 :
+ $val >= $order[0] ? -1 :
+ $rel * ($#{$opt{spark}} - 1e-14) + 1
Replace lines by I<sparklines>,
single characters corresponding to input values.
Replace lines by I<sparklines>,
single characters corresponding to input values.
-A specified sequence of unicode characters will be used for
Of a specified sequence of unicode characters,
the first one will be used for non-values,
Of a specified sequence of unicode characters,
the first one will be used for non-values,
-the last one for the maximum,
-the second (if any) for the minimum,
-and any remaining will be distributed over the range of values.
+the remainder will be distributed over the range of values.
Unspecified, block fill glyphs U+2581-2588 will be used.
=item -s, --stat
Unspecified, block fill glyphs U+2581-2588 will be used.
=item -s, --stat
-��▇▇█▇▇▇▇▇▆▆▆▆▅▅▅▄▄▄▃▃▃▃▂▂▂▂▂▁▂▂▂▂▂▃▃▃▃▄▄▄▅▅▅▆▆▆▆▆▇▇▇▇▇▇▇▇▇▇▆▆▆▆▅▅▅▄▄▄▄▃▃▃▃▂▂▂▂▂▂▂▂▂▂▃▃▃▃▄▄▄▅▅▅▅▆▆▆▆▇
+��████████▇▇▇▆▆▅▅▄▄▃▃▂▂▂▁▁▁▁▁▁▁▁▁▁▁▂▂▂▃▃▄▄▅▅▆▆▇▇▇████████████▇▇▆▆▅▅▄▄▃▃▃▂▂▁▁▁▁▁▁▁▁▁▁▁▁▂▂▃▃▄▄▅▅▆▆▆▇▇██
-��▇▇█▇▇▇▇▇
-��▆▆▆▅▅▅▄▄
-��▃▃▃▃▂▂▂▂
-��▁▂▂▂▂▂▃▃
-��▃▄▄▄▅▅▅▆
-��▆▆▆▇▇▇▇▇
-��▇▇▇▇▆▆▆▆
-��▅▅▄▄▄▄▃▃
-��▃▂▂▂▂▂▂▂
-��▂▂▃▃▃▃▄▄
-▄▅▅��▅▆▆▆▆
-��
+��████████
+��▇▇▆▆▅▅▄▄
+��▃▂▂▂▁▁▁▁
+��▁▁▁▁▁▁▂▂
+��▃▃▄▄▅▅▆▆
+��▇▇██████
+��█████▇▇▆
+��▅▅▄▄▃▃▃▂
+��▁▁▁▁▁▁▁▁
+��▁▁▁▂▂▃▃▄
+▄▅▅��▆▆▇▇█
+��
-OOOOOOOOOOOOoooooooo.................ooooooooOOOOOOOOOOOOOOOOOooooooooo................oooooooooOOOO
+OOOOOOOOOOOOOoooooo...................ooooooOOOOOOOOOOOOOOOOOOOOooooo....................oooooOOOOOO
-\e[31m1\e[90m2\e[90m3\e[90m3\e[90m0\e[90m4\e[90m4\e[90m3\e[90m4\e[90m4\e[90m3\e[90m4\e[32m4\e[32m50\e[32m4\e[90m3\e[0m
+\e[31m1\e[90m1\e[90m2\e[90m3\e[90m0\e[90m4\e[90m4\e[90m4\e[90m4\e[90m4\e[90m3\e[90m4\e[32m5\e[32m50\e[32m5\e[90m2\e[0m
-7.459 of \e[1m-7.459\e[0m total in 16 values over 18 lines (\e[31m-3\e[0m min, \e[36m-0.47\e[0m avg, \e[32m2\e[0m max)
-7.459 of \e[1m-7.459\e[0m total in 16 values over 18 lines (\e[31m-3\e[0m min, \e[36m-0.47\e[0m avg, \e[32m2\e[0m max)