Reginald Beardsley wrote:
> I want to plot circles at points in X-Y which have a specified radius
> in that coordinate system.
OK
> With "set size ratio -1" and pointsize scaled so that circles just
> touch, whether they do depends upon the dimensions of the x11
> window.I'm guessing that the x11 terminal behavior is the result of
> raster arithmetic.
I am assuming that you are using a plot command such as
plot 'foo' using 1:2:3 with points pointsize variable
(please provide the actual plotting command so we can better help out)
> More troubling, the radius is completely different with the postscript
> terminal which is ultimately what I need to use. However, I can't
> even find where the postscript terminal code for a circle is in 4.2.3.
Right. The variable pointsize mode multiplies the "natural size" of
the point, but that differs from one terminal to another.
Furthermore, the base pointsize has no connection to the plot
coordinate system.
So, two answers.
1) Applies to gnuplot 4.2.3
You can do a little better than you are seeing now
by figuring out manually what additional multiplier is needed by the
PostScript terminal to make the base pointsize what your plot needs.
You can either add this to the plot command:
plot 'foo' using 1:2:($3 * SCALE) with points pointsize variable
or you can add it to the terminal specification:
set term postscript pointsize SCALE
2) CVS version of gnuplot
There is a new plot style in the CVS version that does precisely what
you want
plot 'foo' using 1:2:3 with circles
See demo plots at
http://gnuplot.sourceforge.net/demo_4.3/circles.html
This feature is fairly new, and comments or suggestions to improve it
are welcome.


|