【发布时间】:2014-04-28 15:46:57
【问题描述】:
我注意到我可以使用鼠标右键来放大 gnuplot 中的绘图,终端为 X11。
我没有找到其他鼠标手势的任何文档。 例如,做一些缩小就可以了! 你能推荐一下吗?
最好的,
阿尔。
编辑: 显然,正如克里斯托夫建议的那样,唯一的可能性是使用鼠标右键放大并使用键 p 返回。
【问题讨论】:
我注意到我可以使用鼠标右键来放大 gnuplot 中的绘图,终端为 X11。
我没有找到其他鼠标手势的任何文档。 例如,做一些缩小就可以了! 你能推荐一下吗?
最好的,
阿尔。
编辑: 显然,正如克里斯托夫建议的那样,唯一的可能性是使用鼠标右键放大并使用键 p 返回。
【问题讨论】:
是的,文档对此不是很清楚。您可以在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
【讨论】:
NEW Implement pan and zoom via mouse wheel.
p,进入之前的缩放设置。
我知道这是一篇旧帖子,但我一直遇到图表对于 gnuplot 窗口(版本 4.6 补丁级别 6)来说太大的问题。
我找到的解决方案是按住滚轮并左右平移以分别缩小和缩小。
希望对你有帮助。
【讨论】: