|
From: Alan C. <ala...@gm...> - 2016-07-29 19:59:38
|
My data is data points contained in an input file. What I'd like to do is something like: set y2range [(1.8*GPVAL_Y_MIN)+32:(1.8*GPVAL_Y_MAX)+32] But GPVAL_Y_MIN and GPVAL_Y_MAX apparently aren't defined until the read is complete, and putting things like y2range or y2ticks after the read seems to have no effect. I tried refresh and replot after the y2 stuff, even a 2nd plot line. Is there a way to do a dummy read that just sets up the min/max stuff? reset set terminal gif size 1200,800 set output "2labc.gif" set xdata time set timefmt x "%s" set format x "%H:%M\n%D" set style data lines set xtics auto # GPVAL_Y_MIN etc aren't defined yet #set y2range [(1.8*GPVAL_Y_MIN)+32:(1.8*GPVAL_Y_MAX)+32] set y2label "Fahrenheit" plot "outvals.tab" using ($1-(4*3600)):2 notitle # These have no effect: #set y2range [(1.8*GPVAL_Y_MIN)+32:(1.8*GPVAL_Y_MAX)+32] #set y2tics auto #refresh -- Credit is the root of all evil. - AB1JX |