Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Graphics > Gnuplot interactive function plotter > Re: Variable po...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 3 Topic 3543 of 3637
Post > Topic >>

Re: Variable pointsize

by sfeam <sfeam@[EMAIL PROTECTED] > Oct 12, 2008 at 09:25 PM

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.
 




 3 Posts in Topic:
Variable pointsize
Reginald Beardsley <us  2008-10-12 18:41:17 
Re: Variable pointsize
sfeam <sfeam@[EMAIL PR  2008-10-12 21:25:55 
Re: Variable pointsize
Reginald Beardsley <us  2008-10-13 13:17:36 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Dec 5 3:53:51 CST 2008.