Anthony Smith's IDL routines

Galaxies etc.

single page | use frames     summary     class     fields     routine details     file attributes

misc/

ajs_ellipse_plot.pro

topajs_ellipse_plot

ajs_ellipse_plot, a, b [, xc] [, yc] [, ang=ang] [, rho=rho] [, overplot=overplot] [, n_sigma=n_sigma] [, plotfile=plotfile] [, show_plot=show_plot] [, open=open] [, close=close], _REF_EXTRA=_REF_EXTRA

Plot an ellipse

Wrapper on plot or oplot

Parameters

a in required

Semimajor/minor x-axis

b in required

Semimajor/minor y-axis

xc in optional default=0

x-co-ordinate of centre of ellipse

yc in optional default=0

y-co-ordinate of centre of ellipse

Keywords

ang in optional

Positional angle (degrees anticlockwise)

rho in optional

Correlation between x and y, with a and b now interpreted as standard deviation in x and y, to give -sigma contours

Equivalently, plot an ellipse within a rectangle bounded by xc +/- a and yc +/- b, where the ellipse touches the rectangle at +/- (xc + rho * a, yc + b) and +/- (xc + a, yc + rho * b)

overplot in optional

Set /overplot to overplot (uses oplot rather than plot)

n_sigma in optional default=1

With rho, plot -sigma contour(s) (equivalent to multiplier on a and b). Can be an array of values

plotfile in optional

See ajs_plot_start

show_plot in optional

See ajs_plot_start

open in optional

See ajs_plot_start

close in optional

See ajs_plot_start

_REF_EXTRA

Keywords for plot/oplot

Examples

ajs_ellipse_plot, 1, 1

ajs_ellipse_plot, 2, 3, 10, 20

ajs_ellipse_plot, 4, 1, ang=30

ajs_ellipse_plot, 1, 1, rho=0.8, /overplot

ajs_ellipse_plot, 3, 1, rho=0.5, n_sigma=2

ajs_ellipse_plot, 3, 1, rho=-0.5, n_sigma=[1,3,2]

Author information

History:

28 Mar 2008 Written, Anthony Smith

File attributes

Modifcation date: Fri Jun 6 08:19:26 2008
Lines: 175
Docformat: rst rst