Path: csiph.com!usenet.pasdenom.info!news.albasani.net!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: sfeam Newsgroups: comp.graphics.apps.gnuplot Subject: Re: setting absolute size of point (or circle) with autoscaled xrange Followup-To: comp.graphics.apps.gnuplot Date: Thu, 07 Feb 2013 09:04:31 -0800 Organization: gnuplot development team Lines: 41 Message-ID: References: Reply-To: sfeam@users.sourceforge.net Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit Injection-Date: Thu, 7 Feb 2013 17:04:05 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="e947cb29d2533e27aa00183e80187dbb"; logging-data="27050"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+Posx6H+bnskXHFiU7/dlx" User-Agent: KNode/4.4.9 Cancel-Lock: sha1:sV0wbUMqgZ+GLc/R06mp73dvSy4= Xref: csiph.com comp.graphics.apps.gnuplot:1610 fearless_fool wrote: > I understand that the size of a circle or point is in units of the x > axis. But what if I want to set the circle size to an absolute number > of pixels, or percentage of the plot area? See "help set style circle" set style circle radius screen 0.01 plot "-" using 1:2 with circles Ethan > > In particular, what if I want to set the circle size to the same as > shown in the legend? > > I'm currently doing a scatter plot as shown below. I compute the > circle size (shown below as 0.667) by pawing over the x values to get > the min and max and scaling the size relative to that. This sort of > works, except that the autoscaling limits are not the same as the > minimum and maximum of the data: ===== set terminal aqua enhanced font > "Helvetica, 14" > > plot "-" using 1:2:(0.667) title "{/Helvetica=12 predicted}" with > circles fillstyle solid noborder linecolor rgb "#ff4444" 9.0 > 26870.488225 10.74 26622.450975 > 12.48 26375.879575 > ... > 94.26 17585.44715 > end > ===== > Another approach would be do to a dry run (i.e. "set table /dev/null; > plot etc; unset table") and capture the values of GPVAL_XMIN and > GPVAL_XMAX to see where autoscaling set them, then scale the circle > size accordingly. > > (I'd hoped I could do something like '... with circles size screen > 0.01 ...' but no luck.) > > Is there an easier way?