0

I want to represent streaming data using gnuplot. I tried it to plot using commands like 'replot','pause' and 'reread'. But its too slow and weird when data set is so large and similar.Is there any other way to plot streaming data

3
  • I doubt that you want reread as that causes gnuplot to reprocess the script, not the data. pause is somewhat akin to sleep in other languages although you can pause until mouse commands or whatever. replot or refresh is what you want -- there's no way (that I know of) to update the data that you've already given gnuplot. You just need to give it new data and let it read the whole dataset in again. Commented Jul 25, 2012 at 12:07
  • It's worth asking what you're trying to do. Your screen resolution is somewhere on the order of 2000x1000, and the gnuplot window only takes a small portion of that. Realistically speaking, it's pretty much useless to plot anything bigger than 500x500 unless you've set the size of the terminal to be really big. How big is you dataset? Commented Jul 25, 2012 at 12:10
  • We have got an input file which is growing (size more than 2GB). Using these commands we are able to plot streaming data, but when data set grows plot is getting congested.. Commented Jul 31, 2012 at 9:33

1 Answer 1

1

feedgnuplot is a Perl wrapper script around Gnuplot which does exactly what you describe using replot. It has a realtime streaming mode with option --stream. The documentation has an example where a live graph of bandwidth use of a network interface is drawn. If some option you need is not directly supported by feedgnuplot, you can sitll pass options through to gnuplot, so all drawing styles, axis settings etc are supported.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.