Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gnuplot: performance plotting data via a pipe

Tags:

pipe

gnuplot

I am trying to send some pseudo real-time data (1 kHz sample rate) via a pipe to gnuplot v4.6.3. The graphs are excellent if I slow the data down but unfortunately, gnuplot can't keep up so I was wondering if anyone had any suggestions for improving the performance.

I have noticed that the rate at which gnuplot can plot is heavily dependent on the size of the text window so I am guessing that one of the limiting factors is that gnuplot echos all of the piped commands to the text window. Does anyone know how to turn this off as it might solve my problem ?

I have tried the redirect solution mentioned here (hide C++ Gnuplot pipe console output) but it doesn't seem to work under Windows.

Thanks very much, John

like image 688
Johned Avatar asked Nov 10 '22 16:11

Johned


1 Answers

I was using pgnuplot.exe as I didn't realize gnuplot.exe supported pipes. Using "gnuplot -persist > /nul 2>&1" has got the performance - very high indeed :-)

like image 174
Johned Avatar answered Nov 15 '22 09:11

Johned