uniplot

module
v0.0.0-...-039c559 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 3, 2015 License: MIT

README

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. =)

Directories

Path Synopsis
Package barchart is a helper to quickly create barchart from pairs of integers.
Package barchart is a helper to quickly create barchart from pairs of integers.
Package histogram is a helper to quickly create histograms from slices of float64.
Package histogram is a helper to quickly create histograms from slices of float64.
Package spark prints real time data as sparklines in your terminal.
Package spark prints real time data as sparklines in your terminal.
ts
This module is a Terminal API for the Go Programming Language.
This module is a Terminal API for the Go Programming Language.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL