简体   繁体   English

Mac OS X 10.9上的Gnuplot - X11终端和鼠标交互性

[英]Gnuplot on Mac OS X 10.9 - X11 terminal and mouse interactivity

I've installed the Gnuplot version 4.6.6 on my MacBook with Mac OS X 10.9.5. 我用Mac OS X 10.9.5在MacBook上安装了Gnuplot版本4.6.6。 For the X11 terminal I'm using XQuartz 2.7.7. 对于X11终端,我使用的是XQuartz 2.7.7。

Everything works fine, except that the mouse functionalities, as zooming, are not working. 一切正常,但鼠标功能,如缩放,不起作用。 The X11 terminal recognises the mouse, as the coordinates are updated as I move the mouse on the window, but I'm unable to zoom with the right clic. X11终端识别鼠标,因为当我在窗口上移动鼠标时坐标会更新,但我无法使用正确的clic进行缩放。 On my previous Mac (OS X 10.6.8) the mouse was working just fine...any hint? 在我之前的Mac(OS X 10.6.8)上,鼠标工作正常...任何提示?

I found the problem: Gnuplot is expecting a right-clic with the mouse, but the default settings for trackpad assume "Secondary click" by tapping with two fingers. 我发现了问题:Gnuplot期待鼠标右键,但是触控板的默认设置通过两根手指点击“辅助点击”。

You can keep this setting, and just modify XQuartz settings: X11 ---> Preferences ---> input, then flag "Emulate three button mouse". 您可以保留此设置,只需修改XQuartz设置:X11 --->首选项--->输入,然后标记“模拟三键鼠标”。 In this way, by holding option or command while clicking on the the trackpad, the click is interpreted as a right-click, hence allowing one to zoom. 通过这种方式,通过在单击触控板时按住选项或命令,单击被解释为右键单击,因此允许缩放。

You can "right-click" by touching the track pad with two fingers and pressing (ie clicking). 您可以通过用两根手指触摸跟踪板并按下(即单击)来“右键单击”。 In this situation you have to click the track pad and not just tap. 在这种情况下,您必须单击跟踪板,而不是点击。

You can also tap with two fingers twice, keeping your two fingers on the pad after the second tap until the curser changes shape, then lift your two fingers from the pad. 您也可以用两根手指敲击两次,在第二次敲击后将两根手指放在垫子上,直到光标改变形状,然后将两根手指从垫子上抬起。 This action locks the track pad on secondary click. 此操作会锁定辅助点击上的触控板。 You can then use one finger to drag and draw your zoom-in box. 然后,您可以使用一根手指拖动并绘制放大框。 Once you are happy tap once with one finger. 一旦你快乐,用一根手指敲击一下。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM