Crates.io | popoplot |
lib.rs | popoplot |
version | 0.7.0 |
source | src |
created_at | 2021-04-25 14:35:23.040377 |
updated_at | 2021-05-13 22:43:45.082386 |
description | A tool to visualize real time numerical data as a line chart |
homepage | https://github.com/alepez/popoplot |
repository | https://github.com/alepez/popoplot |
max_upload_size | |
id | 389313 |
size | 48,314 |
A tool to visualize real time numerical data as a line chart
This tool is currently a work-in-progress and may drastically change in the future.
Launch it:
popoplot --bind 127.0.0.1:9999 --bar-capacity 50 --max 100 --min 0
Feed it with some data. Here we are sending to its tcp port a stream of numbers from 0 to 100 and back using netcat.
s=1;
k=1;
while sleep 0.1; do
echo $k;
let k=$k+$s;
if [ $k -eq 100 ]; then
s=-1;
elif [ $k -eq 0 ]; then
s=1;
fi;
done | nc localhost 9999
This is the output:
.................................................. 1
=................................................. 2
=................................................. 3
==................................................ 4
==................................................ 5
===............................................... 6
===............................................... 7
====.............................................. 8
====.............................................. 9
=====............................................. 10
=====............................................. 11
======............................................ 12
======............................................ 13
=======........................................... 14
=======........................................... 15
========.......................................... 16
========.......................................... 17
=========......................................... 18
=========......................................... 19
==========........................................ 20
==========........................................ 21