As soon as I use set link y2
the autoextend (scale to the next full tics) of the y axis is disabled.
I want to have tics with labels on both sides of the y axis. In 5.2 I just set y2tics
and that's it. In 5.4 it doesn't work for me. After googling I understood that this may or may not work, is not "clean". The "clean" way would be to set link y2
so that both sides are bound together. Nice, and works.
But this breaks autoextend, so my plots are drawn like in fit mode, and stick to the top and bottom borders. While this is not very important, the graphs still "look better" when autoextend is active. I tried to explicitly set it to on, to no available.
A very simple example is to draw sin(x)*1.1
. With autoextend, y scale will go till -1.5/+1.5 and without, it is clamped to -1.1/1.1
set link y2
plot sin(x)*1.1
Did I miss something? Any workaround?
I am uncertain whether this is a bug or not, but one way around the problem is to specify that you want blank space above and/or below the y extent of the plot:
set link y2
set offset 0,0,.1,.1
plot sin(x)*1.1