#drawing #plot #real-time

app popoplot

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

6 releases (breaking)

0.7.0 May 13, 2021
0.6.0 May 6, 2021
0.5.0 May 2, 2021
0.4.0 May 1, 2021
0.2.0 Apr 25, 2021

#355 in Visualization

MIT license

20KB
507 lines

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

Dependencies

~18–26MB
~218K SLoC