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


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

Re: units when plotting ellipses

From Jörg Buchholz <bookwood4new@freenet.de>
Newsgroups comp.graphics.apps.gnuplot
Subject Re: units when plotting ellipses
Date 2019-03-01 21:23 +0100
Organization A noiseless patient Spider
Message-ID <q5c4bv$o3b$1@dont-email.me> (permalink)
References <d947980d-70a0-42cb-98b4-431ebf57a572@googlegroups.com>

Show all headers | 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