Skip to content
forked from aybabtme/uniplot

Makes histograms and barcharts.

License

Notifications You must be signed in to change notification settings

feiguoL/uniplot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 100.0%