gnuplot如何缩放y& y2轴 [英] gnuplot how to zoom y & y2 axis
问题描述
我有一个用wgnuplot这样的情节:
I have a plot like this using wgnuplot:
绿色和蓝色在y2轴上.
the green and blue are on y2 axis.
问题1:
使用鼠标右键缩放时,我得到:
When I zoom using right mouse button I get:
y轴上的黑线在顶部附近被压缩.此时如何自动获得y比例以适合此窗口的数据.也就是说,我不必键入范围命令?
The black line on yaxis is to compressed near top. How can I get the y scale to fit the data for this window at this point AUTOMATICALLY. I.e.e without me having to type range commands?
问题2:
再次,是否有通过鼠标重新缩放y2轴的缩放比例?
Again, is there anyway to rescale/zoom the y2axis ALONE, by mouse?
推荐答案
只需按'a'或单击autoscale
按钮即可调整y比例.也许您想在此之前使用set autoscale xfix
.
Just press 'a' or click the autoscale
button to adjust the y-scale. Maybe you want to use set autoscale xfix
before that.
它不是用鼠标,但是您可以使用bind
命令通过热键"alt-z"和"alt-y"仅重新缩放y2
轴:
Its not by mouse, but you can use the bind
command to rescale only the y2
-axis with the hotkeys 'alt-z' and 'alt-y':
bind 'alt-z' 'set y2range[GPVAL_Y2_MIN*2:GPVAL_Y2_MAX*2]; replot'
bind 'alt-y' 'set y2range[GPVAL_Y2_MIN*0.5:GPVAL_Y2_MAX*0.5]; replot'
这篇关于gnuplot如何缩放y& y2轴的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!