dhschall / uniplot

Makes histograms and barcharts.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Uniplot

A small collection of plot helpers. Make Unicode barcharts:

0   █ 1
1   ██▉ 3
2   ███▉ 4
3   █████▊ 6
4   ███████▋ 8
5   nil
6   nil
7   ██████████████▎ 15
8   █████████▋ 10
9   ██████▋ 7
10  ████▊ 5
11  ██▉ 3
12  ██ 2
13  █ 1
14  ▏ 0
15  ███████████████████▏ 20

...or histograms:

0.1-0.2  5%   ▋1
0.2-0.3  25%  ██▊5
0.3-0.4  0%   ▏
0.4-0.5  5%   ▋1
0.5-0.6  45%  █████▏9
0.6-0.7  5%   ▋1
0.7-0.8  0%   ▏
0.8-0.9  5%   ▋1
0.9-1    10%  █▏2

... or realtime spark lines:

example-sparklines

If your console font is Monaco, one of the blocks look weird. Use Menlo. =)

About

Makes histograms and barcharts.

License:MIT License


Languages

Language:Go 100.0%