Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aybabtme/uniplot
Makes histograms and barcharts.
https://github.com/aybabtme/uniplot
Last synced: 19 days ago
JSON representation
Makes histograms and barcharts.
- Host: GitHub
- URL: https://github.com/aybabtme/uniplot
- Owner: aybabtme
- License: mit
- Created: 2014-06-03T16:27:30.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2022-02-14T10:57:11.000Z (over 2 years ago)
- Last Synced: 2024-10-14T18:08:03.417Z (about 1 month ago)
- Language: Go
- Homepage:
- Size: 31.3 KB
- Stars: 215
- Watchers: 6
- Forks: 13
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
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](https://cloud.githubusercontent.com/assets/1189716/3317255/09998004-f70b-11e3-8aab-597bd848c467.gif)
If your console font is Monaco, one of the blocks look weird. Use Menlo. =)