From: Arnd B. <arn...@we...> - 2004-06-28 14:01:14
|
On Mon, 28 Jun 2004, [iso-8859-15] Fr=E9d=E9ric Mantegazza wrote: > Hi, > > We are using gnuplot 4.0 under linux within a python script. To do that, = we > just run gnuplot and send commands through a pipe connected to its stdin. > > But, in this mode, we don't have interactivity (mouse, zoom, etc..), but = it > works well when lauching gnuplot from a shell. > > Gnuplot probably enters in a special mode when not launched from a shell.= Is > it possible to turn out this behaviour, and have interactivity even when > launched from a pipe ? Yep, see for example http://www.physik.tu-dresden.de/~baecker/python/gnuplot.html I.e., you just have to do send "set mouse" before you start any plotting. Further information from `help set mouse` """ X11 specific implementation details: Mouse support is turned on by default if standard input comes from a terminal (tty). Mouse support is turned off if standard input does not come from a tty, e.g. a pipe. If you want to use mouse support while writing to gnuplot from a pipe, the mouse must be turned on *before* starting the x11 driver, e.g. immediately after startup with the explicit command `set mouse`. """ Best, Arnd |