Live story by stdin

I have an application that prints numbers in stdout. Is there an easy way to use any command line tool (gnuplot) for live image graphics?

+4
source share
4 answers

You can redirect numbers to a file and periodically read the file using the gnuplot reeread command or manually clicking ein the chart window.

shell$ command > points.dat

At gnuplot

gnuplot> plot "points.dat" using 1:2

and click eon the window to update it, or see an example from

gnuplot> help reread
+2
source

You can use plotti.co to export your story to the Internet in one layer, for example:

<program> | xargs -L1 sh -c 'wget -q -O /dev/null http://plotti.co/4134314?d=$0'

http://plotti.co/4134314/plot.svg

: plotti.co

+2

livechart . matplotlib , JSON stdin.

sudo pip install livechart

, Python2.7 , matplotlib 3.x. , ++ matplotlib (sudo apt-get install g++ Debian).

+1

ttyplot, , STDIN

enter image description here

0

Source: https://habr.com/ru/post/1773837/


All Articles