Why the interactive mode of my gnuplot installation will not rotate when it will be used for batch.dem files as well as for Octave

I have gnuplot 4.6 working on Mac OS X. It also works on Octave. This is not an octave related question, just trying to convince you that gnuplot seems to be installed perfectly. My problem is that although I CAN rotate the graphs with the mouse (I use x11 as the build window) in batch sort mode (e.g. $ unixPrompt> gnuplot pm3d.dem works fine: I can rotate / zoom them), and It can also rotate 3d graphs created from within Octave, but I can’t just go to gnuplot and rotate any such graph from the gnuplot interactive program. i.e. gnuplot> issuePlotCommands ... will lay out the plot just fine, but I cannot rotate this plot, as I can do when I issued the same commands in batch or Octave mode. My interactive gnuplot does not seem to allow any mouse input.I currently have GNUTERM = x11 in my .profile. Can someone please indicate why the interactive mode of my gnuplot installation will not rotate when it will be for batch.dem files as well as for Octave? Thank.

+5
source share
2 answers

Does the value add set mouse?

(from gnuplot document)

The command `set mouse` enables mouse actions. Currently the pm, x11, ggi,
windows and wxt terminals are mouse enhanced. There are two mouse modes. The
2d-graph mode works for 2d graphs and for maps (i.e. splots with `set view`
having z-rotation 0, 90, 180, 270 or 360 degrees, including `set view map`)
and it allows tracing the position over graph, zooming, annotating graph etc.
For 3d graphs `splot`, the view and scaling of the graph can be changed with
mouse buttons 1 and 2. If additionally to these buttons the modifier <ctrl> is
hold down, the coordinate system only is rotated which is useful for large
data sets. A vertical motion of Button 2 with the shift key hold down changes
the `xyplane`.

Please note the following:

echo "plot sin(x); pause mouse keypress" | gnuplot -persist

but it will not be:

echo "plot sin(x)" | gnuplot -persist

since the gnuplot process must be available for the gnuplot_x11 driver to talk to it for rotation.

+6
source

Enter pause -1. It allowed me to spin!

+9
source

All Articles