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


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

Re: units when plotting ellipses

Path csiph.com!eternal-september.org!feeder.eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From Jörg Buchholz <bookwood4new@freenet.de>
Newsgroups comp.graphics.apps.gnuplot
Subject Re: units when plotting ellipses
Date Fri, 1 Mar 2019 21:23:26 +0100
Organization A noiseless patient Spider
Lines 35
Message-ID <q5c4bv$o3b$1@dont-email.me> (permalink)
References <d947980d-70a0-42cb-98b4-431ebf57a572@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Transfer-Encoding 8bit
Injection-Date Fri, 1 Mar 2019 20:23:27 -0000 (UTC)
Injection-Info reader02.eternal-september.org; posting-host="3452d74a424b62f5358e0deb6251f059"; logging-data="24683"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/ilyPudflbdAN+7dqkP5o6LlLWbVZOJ4E="
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1
Cancel-Lock sha1:LwYdUWdV6sfGVaxOGCxpjCh8cvI=
In-Reply-To <d947980d-70a0-42cb-98b4-431ebf57a572@googlegroups.com>
Content-Language en-GB
Xref csiph.com comp.graphics.apps.gnuplot:4164

Show key headers only | View raw


On 28.02.19 17:51, Nicholas Patterson wrote:
> I am trying to use 
> plot datafile with ellipses 
> 
> major and minor axes are in x-units or y-units (depending on 
> set style ellipses settings).  But I don't know what the units are (or even mean)
> and the coordinates of my plotted ellipse depend (for instance) on xrange and 
> yrange.  I know the absolute coordinates and that's what I want.  
> Help please!   For instance I want to plot an ellipse, center at origin
> major axis 10, minor 2 and major aligned with y-axis.  
> datafile is:
> 0 0 10 2 90   
> But this doesn't work as I alter yrange. 

If you want that both axis aligned with the y-axis try

plot datafile with ellipses units yy

Be careful with the rotation. First the ellipse will be draw and than it
will be rotated, so x-y allocation is changed.

Example with your datafile:

plot 'ellipse.dat' u 1:2:4:3:5 w ellipses units yy

gives a ellipse with the following dimensions to you:

center 0,0
focus is at -2.5 and 2.5
distance between focus 1 and 2 is 10 (This is not the distance on the
major axis, see https://en.wikipedia.org/wiki/Ellipse)
minor axis is 2


Jörg

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


Thread

units when plotting ellipses Nicholas Patterson <nickp@broadinstitute.org> - 2019-02-28 08:51 -0800
  Re: units when plotting ellipses Jörg Buchholz <bookwood4new@freenet.de> - 2019-03-01 21:23 +0100

csiph-web