|
From: Ethan M. <merritt@u.washington.edu> - 2009-03-25 16:16:23
|
On Wednesday 25 March 2009 05:31:14 nabed wrote: > > Hi > > Would it be possible to add the ability recieve output from gnuplot, over > stdout to enable command driven bi-directional communication with gnuplot. > That way a program could start an embedded gnuplot process and monitor the > processes input and outpout streams to do bi-directional communication. > > Specifically I would want to be able to use this text output pipe mechanism > to: > > 1) get the region displayed by the graph, after the user has finished > interactively zooming and panning. (get_xxx) If you want output to stdout: print GPVAL_XMIN, GPVAL_XMAX, GPVAL_YMIN, GPVAL_YMAX If you want output via a new or different pipe: set print "| namedpipe" print GPVAL_XMIN, GPVAL_XMAX, GPVAL_YMIN, GPVAL_YMAX > 2) to be able to set when the user can interact with gnuplot or not i.e. > toggle interaction mode. I don't understand what you mean by this. > 3) to be able to be able to put gnuplot in a mode which allows the user to > toggle the addition and removal of new data points and to output point_added > and point_removed notifications. See the demo script: "mousevariables.dem" All of this is possible already; much of since version 4.2 or earlier. If you could narrow your question down to a specific thing that you want to do, perhaps someone will suggest a bit of sample code to look at. > Thanks, > Serle -- Ethan A Merritt |