dkogan / feedgnuplot

Tool to plot realtime and stored data from the commandline, using gnuplot.
Other
707 stars 37 forks source link

added --exit option allowing feedgnuplot to return #14

Closed eschulte closed 11 years ago

eschulte commented 11 years ago

Adds another command line flag which will inhibit the final sleep allowing feedgnuplot to exit. I find this useful, as I sometimes call feedgnuplot in situations where I don't need the plot window to be interactive, but I do want the feedgnuplot process to return (e.g., because it is called from some other process).

dkogan commented 11 years ago

Merged. Thanks!

Note that this option doesn't work for all gnuplot terminals since gnuplot can exit before all the data is sent to the display server (X for instance). On my machine (Debian/sid) the x11 terminal works OK, but not great with --exit (I'm using a tiling window manager so there's always an initial resize; with --exit this resize event never makes it). With wxt (the default terminal on X) this command "seq 50000 | bin/feedgnuplot --lines --exit" shows a blank window about 1/3 of the time. These are failings of gnuplot rather than feedgnuplot, but you should be aware. I added this warning to the help text of --exit. Thanks again.