I can do it manually of course :

[code]

plot "data2.dat" axes x1y2

SAVE_Y2_MIN=GPVAL_Y2_MIN

SAVE_Y2_MAX=GPVAL_Y2_MAX

plot "data1.dat" axes x1y2

max(a,b)=(a>b)?a:b

a=max(SAVE_Y2_MIN/GPVAL_Y_MIN,SAVE_Y2_MAX/GPVAL_Y_MAX)

set y2range [GPVAL_Y_MIN*a:GPVAL_Y_MAX*a]

replot "data2.dat" axes x1y2

[/code]

Last edit: Anonymous 2013-11-20