plottools - Maple Programming Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Graphics : Packages : Plot Tools : plottools/ellipse

plottools

  

ellipse

  

generate 2-D plot object for an ellipse

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

ellipse(c, a, b, filled=boolean, numpoints=n, options)

Parameters

c

-

center of the ellipse

a

-

horizontal radius of the ellipse

b

-

vertical radius of the ellipse

filled=boolean

-

(optional) whether to fill the inside of the ellipse, default=false

numpoints=n

-

(optional) number of points to generate, default=200

super, super=m, super=[m1,m2]

-

(optional) create a superellipse or generalized superellipse

options

-

(optional) equations of the form option=value. For a complete list, see plot/options.

Description

• 

The ellipse command creates a two-dimensional plot data object, which when displayed is an ellipse centered at c with radial distances a and b, that is, ellipse([x0, y0], a, b) draws the ellipse

xx02a2+yy02b2=1

• 

The super option given alone is equivalent to super=m (with m=4) which is equivalent to super=[m,m]. More generally ellipse([x0, y0], a, b, super=[m1,m2]) draws the superellipse (or generalized superellipse when m1m2)

xx0am1+yy0bm2=1

• 

The plot data object produced by the ellipse command can be used in a PLOT data structure, or displayed using the plots[display] command.

• 

Remaining arguments are interpreted as options, which are specified as equations of the form option = value. For more information, see plottools and plot/options.

Examples

withplottools:

withplots:

Draw an ellipse described by the following equation,

a2:b3:x00:y00:

elliellipsex0,y0,a,b,filled=true,color=blue:

displayelli,scaling=constrained

which is equivalent (apart from the filled option) to:

eqxx02a2+yy02b2=1:

implicitploteq,x=4..4,y=4..4,scaling=constrained

Ellipse in arbitrary forms can be generated with object transformations such as rotate in the plots package.

displayrotateelli,π4

displayellipsesuper,scaling=constrained

ms13,12,23,1,32,2,3,5

ms13,12,23,1,32,2,3,5

(1)

displayseqellipsesuper=msi,legend=catm=,msi,color=Niagara i,i=1..nopsms,scaling=constrained

displayellipsesuper=15,3,color=DarkRed,ellipsesuper=2,5,color=DarkBlue,scaling=constrained

Compatibility

• 

The plottools[ellipse] command was updated in Maple 2019.

• 

The super option was introduced in Maple 2019.

• 

For more information on Maple 2019 changes, see Updates in Maple 2019.

See Also

plot/options

plot/structure

plots[display]

plottools

plottools[ellipticArc]