Skip to content

annacrombie/plot

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
cli
 
 
 
 
 
 
 
 
lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Plot

plot on the command line

$ seq 1 5 | plot -d5
       5.00 ┤   ╭─
       4.00 ┤  ╭╯
       3.00 ┤ ╭╯
       2.00 ┤╭╯
       1.00 ┼╯

Monitor linux network usage:

card=wlan0
plot -d10 -f -p "avg:5|roc:5" \
    -c l -i "/sys/class/net/$card/statistics/rx_packets:r" \
    -c r -i "/sys/class/net/$card/statistics/tx_packets:r"

output of the above command

Building

compile:

$ meson build
$ meson compile -C build

install:

$ meson install -C build

Testing

$ meson test -C build

or, if you want to watch the tests,

$ meson test -C build -v --num-processes 1

Usage

For the cli, see plot -h or man plot.

See include/plot/plot.h for library documentation. Real documentation is a TODO.

Credits

Inspired by asciichart