Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/seenaburns/stag
Streaming bar graphs. For stats and stuff.
https://github.com/seenaburns/stag
c cli graph terminal unixporn
Last synced: 10 days ago
JSON representation
Streaming bar graphs. For stats and stuff.
- Host: GitHub
- URL: https://github.com/seenaburns/stag
- Owner: seenaburns
- License: bsd-3-clause
- Created: 2014-06-04T23:55:36.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2024-04-15T02:11:38.000Z (7 months ago)
- Last Synced: 2024-08-01T03:28:28.588Z (3 months ago)
- Topics: c, cli, graph, terminal, unixporn
- Language: C
- Size: 500 KB
- Stars: 312
- Watchers: 10
- Forks: 13
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
STAG
===![Stag Progress](http://i.imgur.com/YqgsMV3.png)
DESCRIPTION
---Stag generates a streaming bar graph inside the terminal from the data (newline separated floats) passed through stdin.
SYNOPSIS
---
stag [-t TITLE] [-m MARGIN] [-s SCALE\_MODE] [-w BAR\_WIDTH] [-y Y\_SPLITS]OPTIONS
---
-t, --title=TITLE
Set the title displayed above the graph.-m, --margin=T,R,B,L
Set the margin around the edge of the graph, defined as a comma
delimited list of 4 integers: top,right,bottom,left.-s, --scale=SCALE_MODE
Choose how to scale the y-axis of the graph.
dynamic: update the max using the values currently on the graph
global: update the max to be the global maximum of all data seen
min,max: specify the max and min using two integers-w, --width=BAR_WIDTH
Set the width of the bars.-y, --split=Y_SPLITS
Set the number of intermediate y-axis ticks between the min and max.For unicode support (8x better resolution on the graph using the bar characters) install from the [unicode feature branch](https://github.com/seenaburns/stag/tree/unicode) and then use -u.
EXAMPLES
---
Trivial example:echo -e "1\n2\n3" | ./stag
See examples/ directory for more.
AUTHOR
---
Seena Burns (nnkd)Stag 1.0
August 26, 2014