【问题标题】:mouse in gnuplot x11gnuplot x11中的鼠标
【发布时间】:2014-04-28 15:46:57
【问题描述】:

我注意到我可以使用鼠标右键来放大 gnuplot 中的绘图,终端为 X11。

我没有找到其他鼠标手势的任何文档。 例如,做一些缩小就可以了! 你能推荐一下吗?

最好的,

阿尔。


编辑: 显然,正如克里斯托夫建议的那样,唯一的可能性是使用鼠标右键放大并使用键 p 返回。

【问题讨论】:

    标签: zooming gnuplot x11


    【解决方案1】:

    是的,文档对此不是很清楚。您可以在help mouse 下找到有关此的一些信息(在交互式 gnuplot 终端中输入,或查看 pdf 中的 Mouse 部分)。例如,这向您展示了您可以使用鼠标滚轮在 x 和 y 方向滚动以及缩放 (help mouse scrolling)。

    要获取所有手势,请输入show bind,它会给出我(Linux,4.6.4):

    gnuplot> show bind
    
     2x<B1>             print coordinates to clipboard using `clipboardformat`
                        (see keys '3', '4')
     <B2>               annotate the graph using `mouseformat` (see keys '1', '2')
                        or draw labels if `set mouse labels is on`
     <Ctrl-B2>          remove label close to pointer if `set mouse labels` is on
     <B3>               mark zoom region (only for 2d-plots and maps).
     <B1-Motion>        change view (rotation). Use <ctrl> to rotate the axes only.
     <B2-Motion>        change view (scaling). Use <ctrl> to scale the axes only.
     <Shift-B2-Motion>  vertical motion -- change xyplane
     <wheel-up>         scroll up (in +Y direction).
     <wheel-down>       scroll down.
     <shift-wheel-up>   scroll left (in -X direction).
     <shift-wheel-down>  scroll right.
     <control-wheel-up>  zoom in toward the center of the plot.
     <control-wheel-down>   zoom out.
     <shift-control-wheel-up>  zoom in only the X axis.
     <shift-control-wheel-down>  zoom out only the X axis.
    
    Space          raise gnuplot console window
     q            * close this plot window
    
     a              `builtin-autoscale` (set autoscale keepfix; replot)
     b              `builtin-toggle-border`
     e              `builtin-replot`
     g              `builtin-toggle-grid`
     h              `builtin-help`
     l              `builtin-toggle-log` y logscale for plots, z and cb for splots
     L              `builtin-nearest-log` toggle logscale of axis nearest cursor
     m              `builtin-toggle-mouse`
     r              `builtin-toggle-ruler`
     1              `builtin-previous-mouse-format`
     2              `builtin-next-mouse-format`
     3              `builtin-decrement-clipboardmode`
     4              `builtin-increment-clipboardmode`
     5              `builtin-toggle-polardistance`
     6              `builtin-toggle-verbose`
     7              `builtin-toggle-ratio`
     n              `builtin-zoom-next` go to next zoom in the zoom stack
     p              `builtin-zoom-previous` go to previous zoom in the zoom stack
     u              `builtin-unzoom`
     Right          `builtin-rotate-right` only for splots; <shift> increases amount
     Up             `builtin-rotate-up` only for splots; <shift> increases amount
     Left           `builtin-rotate-left` only for splots; <shift> increases amount
     Down           `builtin-rotate-down` only for splots; <shift> increases amount
     Escape         `builtin-cancel-zoom` cancel zoom region
    

    【讨论】:

    • 这个帮助会很棒!不幸的是,“显示绑定”在我的 gnuplot 中无效。我只能使用右键放大! Gnuplot 版本为“4.2 patchlevel 6”,终端 x11
    • 这似乎是在 4.4.3 版本中引入的,来自其 NEWS 文件:NEW Implement pan and zoom via mouse wheel.
    • 但是我仍然可以使用右键放大。没有办法缩小?
    • 您可以使用例如取消缩放p,进入之前的缩放设置。
    • 有没有办法用鼠标跟随曲线?如果能以某种方式让鼠标光标捕捉到最近的曲线,并且能够看到精确的 X、Y 坐标,而不仅仅是近似值,并尽量靠近曲线,那就太好了。
    【解决方案2】:

    我知道这是一篇旧帖子,但我一直遇到图表对于 gnuplot 窗口(版本 4.6 补丁级别 6)来说太大的问题。

    我找到的解决方案是按住滚轮并左右平移以分别缩小和缩小。

    希望对你有帮助。

    【讨论】:

    • 那你又做错了。不适合作为这个问题的答案
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-02-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-06-06
    相关资源
    最近更新 更多