我有 gnuplot 4.6 在 Mac OS X 上工作。它也适用于 Octave。这不是一个与八度音程相关的问题,只是试图说服您 gnuplot 似乎安装得很好。我的问题是,虽然我可以在批处理模式下用鼠标旋转绘图(我使用 x11 作为绘图窗口)(例如 $unixPrompt> gnuplot pm3d.dem 工作正常:我可以旋转/缩放它们),而且还可以旋转从 Octave 中创建的 3d 绘图,但我不能只进入 gnuplot 并从交互式 gnuplot 程序中旋转任何此类绘图。IE。gnuplot> issuePlotCommands... 会很好地显示该图,但是当我以批处理或 Octave 驱动的方式发出相同的命令时,我不能像我可以做的那样旋转该图。我的交互式 gnuplot 似乎不允许任何鼠标输入。我目前的 .profile 中有 GNUTERM=x11。谁能指出为什么我的 gnuplot 安装的交互模式在用于 batch.dem 文件和 Octave 时不会旋转?谢谢。
问问题
6678 次
2 回答
10
输入pause -1
. 这为我启用了旋转!
于 2012-05-28T04:44:16.260 回答
8
添加set mouse
有什么不同吗?
(来自 gnuplot 文档)
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`.
请注意,以下将起作用:
echo "plot sin(x); pause mouse keypress" | gnuplot -persist
但这不会:
echo "plot sin(x)" | gnuplot -persist
因为 gnuplot 进程必须处于活动状态才能让 gnuplot_x11 驱动程序与之交谈以进行旋转。
于 2012-05-04T23:14:01.443 回答