Zooming 在gnuplot 3d splot上缩放z轴?
是否有使用鼠标或按键缩放z轴的交互方式 我可以改变x或y,但不能改变zZooming 在gnuplot 3d splot上缩放z轴?,zooming,mouse,gnuplot,Zooming,Mouse,Gnuplot,是否有使用鼠标或按键缩放z轴的交互方式 我可以改变x或y,但不能改变z wheel scroll changes y axis. shift-wheel scroll change x axis. 但我没有尝试过任何组合影响z 编辑1 在克里斯托夫的建议下,我加了一些包扎。当我键入“bind”但不执行任何操作时,ctrl键将显示。当我键入“bind”时,Tab-one甚至不显示 不能将选项卡用作绑定的合成键。当我尝试你的一句台词时 bind 'Tab-Left' 'set zrange[GP
wheel scroll changes y axis.
shift-wheel scroll change x axis.
但我没有尝试过任何组合影响z
编辑1
在克里斯托夫的建议下,我加了一些包扎。当我键入“bind”但不执行任何操作时,ctrl键将显示。当我键入“bind”时,Tab-one甚至不显示
不能将
选项卡
用作绑定的合成键。当我尝试你的一句台词时
bind 'Tab-Left' 'set zrange[GPVAL_Z_MIN+(0.2*(GPVAL_Z_MAX-GPVAL_Z_MIN)):GPVAL_Z_MAX+(0.2*(GPVAL_Z_MAX-GPVAL_Z_MIN))]; replot'
我收到消息bind:cannotparse Tab Left
(用4.6.4测试)
使用例如Alt Left
可以正常工作:
change_z(left,right) = sprintf('set zrange[GPVAL_Z_MIN+(%f*(GPVAL_Z_MAX-GPVAL_Z_MIN)):GPVAL_Z_MAX+(%f*(GPVAL_Z_MAX-GPVAL_Z_MIN))]; replot', left, right)
bind 'Alt-Left' 'eval(change_z(0.2, 0.2))'
bind 'Alt-Right' 'eval(change_z(-0.2, -0.2))'
bind 'Alt-Up' 'eval(change_z(-0.2, 0.2))'
bind 'Alt-Down' 'eval(change_z(0.2,-0.2))'
按第三个按钮(鼠标滚轮)可以缩放z轴,但不能缩放。也许您可以使用
bind
创建热键,该热键在z方向上缩放,类似于@Christoph,我已经为x、y和y2(如果存在)创建了热键,但在使用splot时热键似乎被忽略
change_z(left,right) = sprintf('set zrange[GPVAL_Z_MIN+(%f*(GPVAL_Z_MAX-GPVAL_Z_MIN)):GPVAL_Z_MAX+(%f*(GPVAL_Z_MAX-GPVAL_Z_MIN))]; replot', left, right)
bind 'Alt-Left' 'eval(change_z(0.2, 0.2))'
bind 'Alt-Right' 'eval(change_z(-0.2, -0.2))'
bind 'Alt-Up' 'eval(change_z(-0.2, 0.2))'
bind 'Alt-Down' 'eval(change_z(0.2,-0.2))'