|
From: theozh <th...@gm...> - 2016-07-13 12:56:42
|
> linked axes are not compatible with log scale > That's unfortunate. I do not have enough insight into gnuplot why it should not be possible for logscale. However, for a simple relative "linked" shift of the log axes the following should be a workaround using the gnuplot variables GPVAL_Y_MIN and GPVAL_Y_MAX ##### "link" logarithmic axes reset Offset = 0.01 # Log y and y2 axes offset set xrange [-12:2] set logscale y set ytics format "%g" nomirror set grid ytics set yrange [*:*] set logscale y2 set y2tics format "%g" nomirror set y2range [GPVAL_Y_MIN*Offset:GPVAL_Y_MAX*Offset] plot 10**x axis x1y1, 10**x axis x1y2 replot # obviously it needs replot to update the GPVAL values?! |