Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.graphics.apps.gnuplot > #1614

Re: setting absolute size of point (or circle) with autoscaled xrange

Newsgroups comp.graphics.apps.gnuplot
Date 2013-02-07 10:55 -0800
References <a3425937-06b3-4d68-9cde-d9edf6510371@googlegroups.com> <kf0mq4$qda$1@dont-email.me> <726ae321-eb11-4be5-9f4a-ac117947c168@googlegroups.com> <kf0roh$pmi$1@dont-email.me> <42910e91-ed5a-455f-9654-53b8f9f1f7b5@googlegroups.com>
Message-ID <26f95d1b-a283-413f-b082-e45e22896244@googlegroups.com> (permalink)
Subject Re: setting absolute size of point (or circle) with autoscaled xrange
From fearless_fool <rdpoor@gmail.com>

Show all headers | View raw


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.

Back to comp.graphics.apps.gnuplot | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

setting absolute size of point (or circle) with autoscaled xrange fearless_fool <rdpoor@gmail.com> - 2013-02-07 07:26 -0800
  Re: setting absolute size of point (or circle) with autoscaled xrange sfeam <sfeam@users.sourceforge.net> - 2013-02-07 09:04 -0800
    Re: setting absolute size of point (or circle) with autoscaled xrange fearless_fool <rdpoor@gmail.com> - 2013-02-07 09:23 -0800
      Re: setting absolute size of point (or circle) with autoscaled xrange sfeam <sfeam@users.sourceforge.net> - 2013-02-07 10:29 -0800
        Re: setting absolute size of point (or circle) with autoscaled xrange fearless_fool <rdpoor@gmail.com> - 2013-02-07 10:36 -0800
          Re: setting absolute size of point (or circle) with autoscaled xrange fearless_fool <rdpoor@gmail.com> - 2013-02-07 10:55 -0800
          Re: setting absolute size of point (or circle) with autoscaled xrange sfeam <sfeam@users.sourceforge.net> - 2013-02-07 13:31 -0800

csiph-web