popoplot

Crates.iopopoplot
lib.rspopoplot
version0.7.0
sourcesrc
created_at2021-04-25 14:35:23.040377
updated_at2021-05-13 22:43:45.082386
descriptionA tool to visualize real time numerical data as a line chart
homepagehttps://github.com/alepez/popoplot
repositoryhttps://github.com/alepez/popoplot
max_upload_size
id389313
size48,314
Alessandro Pezzato (alepez)

documentation

https://github.com/alepez/popoplot

README

popoplot

A tool to visualize real time numerical data as a line chart

Disclaimer

This tool is currently a work-in-progress and may drastically change in the future.

Usage

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
Commit count: 66

cargo fmt