On Thursday, 7 February 2013 10:36:37 UTC-8, fearless_fool wrote:
> to handle the general case with N overlaid scatterplots,
> I should use the "do a dummy plot to capture GPVAL_XMIN
> and GPVAL_XMAX and scale accordingly".
I found a problem with this: the setting GPVAL_X_{MIN MAX} doesn't honor autoscaling when printing to a table. In particular:
=====
set terminal aqua enhanced font "Helvetica, 14"
set table '/dev/null'
plot "-" using 1:2 title "predicted" with circles fillstyle solid noborder linecolor rgb "#ff4444"
9.0 26870.488225
94.26 17585.44715
end
unset table
print 'after plotting to /dev/null, GPVAL_X_MIN = ', GPVAL_X_MIN, ", GPVAL_X_MAX = ", GPVAL_X_MAX
plot "-" using 1:2 title "{/Helvetica=12 predicted}" with circles fillstyle solid noborder linecolor rgb "#ff4444"
9.0 26870.488225
94.26 17585.44715
end
print 'after plotting to screen, GPVAL_X_MIN = ', GPVAL_X_MIN, ", GPVAL_X_MAX = ", GPVAL_X_MAX
=====
produces
=====
after plotting to /dev/null, GPVAL_X_MIN = 9.0, GPVAL_X_MAX = 94.26
after plotting to screen, GPVAL_X_MIN = 0.0, GPVAL_X_MAX = 100.0
=====
For now, will use (94.26 - 9.0) as my scaling constant rather than the more accurate (100.0 - 0.0). But is there a way to find out what the autoscale limits WOULD get set to if I were printing to the screen (rather than to /dev/null)?
P.S. FWIW, I'm now running gnuplot 4.6 patchlevel 1.