operator: bar-chart
description:
bar-chart[n] sp
ascii bar chart of the given superposition
where n specifies max width of bar-chart
examples:
bar-chart[30] rank split |a b c d e f>
----------
a : |||||
b : ||||||||||
c : |||||||||||||||
d : ||||||||||||||||||||
e : |||||||||||||||||||||||||
f : ||||||||||||||||||||||||||||||
----------
bar-chart[40] shuffle rank split |a b c d e f>
----------
d : ||||||||||||||||||||||||||
a : ||||||
b : |||||||||||||
c : ||||||||||||||||||||
e : |||||||||||||||||||||||||||||||||
f : ||||||||||||||||||||||||||||||||||||||||
----------
see also:
plot, sorted-bar-chart, coeff-sort, ket-sort
future:
implement sbar-chart, a version that works for sequences
Home