为什么我的gnuplot安装的交互模式在Batch.dem文件和Octave中都不会旋转 [英] why the interactive mode of my gnuplot installation won't rotate when it will for batch.dem files and also for Octave

查看:82
本文介绍了为什么我的gnuplot安装的交互模式在Batch.dem文件和Octave中都不会旋转的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Mac OS X上使用了gnuplot 4.6.它也可以在Octave中使用.这不是一个与倍频程有关的问题,只是试图说服gnuplot似乎安装正确.我的问题是,虽然我可以用批处理模式(例如$ unixPrompt> gnuplot pm3d.dem可以用鼠标旋转绘图(我使用x11作为绘图窗口),但工作正常:我可以旋转/缩放它们),而且还可以旋转从Octave中创建的3d图,但是我不能只进入gnuplot并从交互式gnuplot程序中旋转任何此类图. IE. gnuplot> issuePlotCommands…可以很好地放置绘图,但是我不能像以批处理或八度驱动方式发出相同命令时那样旋转该绘图.我的交互式gnuplot似乎不允许任何鼠标输入.我的.profile中目前有GNUTERM = x11.谁能指出为什么我的gnuplot安装的交互模式在batch.dem fils和Octave时都不会旋转?谢谢.

I have gnuplot 4.6 working on Mac OS X. It works from Octave as well. This isn't an octave related question, just trying to convince you that gnuplot seems to be installed fine. My problem is that while I CAN rotate plots with the mouse (am using x11 as the plotting window) in a batch sort of mode (e.g. $unixPrompt> gnuplot pm3d.dem works fine: I can rotate/zoom them), and ALSO can rotate 3d plots created from within Octave, but I CANNOT just go into gnuplot and rotate any such plot from the interactive gnuplot program. ie. gnuplot> issuePlotCommands… will put up the plot just fine, but I cannot then rotate that plot like I can do when I've issued the same commands in a batch or Octave-driven manner. My interactive gnuplot seems to allow no mouse input whatsoever. I currently have GNUTERM=x11 in my .profile. Can anyone point out why the interactive mode of my gnuplot installation won't rotate when it will for batch.dem fils and also for Octave? Thanks.

推荐答案

添加set mouse有什么区别吗?

(来自gnuplot文档)

(from the gnuplot doc)

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`.

请注意,以下内容将起作用:

Notice that the following will work:

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

但这不会:

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

因为gnuplot进程必须处于活动状态,以便gnuplot_x11驱动程序可以与之交谈以进行旋转.

since the gnuplot process must be alive for the gnuplot_x11 driver to talk to for the rotating.

这篇关于为什么我的gnuplot安装的交互模式在Batch.dem文件和Octave中都不会旋转的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆