ellipse - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.

Online Help

All Products    Maple    MapleSim


plottools

  

ellipse

  

generate 2-D plot object for an ellipse

 

Calling Sequence

Parameters

Options

Description

Examples

Compatibility

Calling Sequence

ellipse(c, a, b, opts)

Parameters

c

-

center of the ellipse

a

-

horizontal radius of the ellipse

b

-

vertical radius of the ellipse

opts

-

(optional) equations of the form option=value

Options

• 

Any applicable 2-D plot option in plot/options can also be given.

• 

filled : truefalse

  

Specifies whether to fill the inside of the ellipse. The default is false.

• 

rotate = real

  

Specifies that ellipse should be be rotated by the specified angle (in radians). The default is 0.

• 

super = positive real, list of two positive reals, or the value true

  

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 m1≠m2)

x−x0am1+y−y0bm2=1

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

x−x02a2+y−y02b2=1

• 

The super option may be used to draw a superellipse or generalized superellipse.

• 

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

> 

with⁡plottools:

> 

with⁡plots:

Draw an ellipse described by the following equation,

> 

a≔2:b≔3:x0≔0:y0≔0:

> 

elli≔ellipse⁡x0,y0,a,b,filled=true,color=blue:

> 

display⁡elli,scaling=constrained

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

> 

eq≔x−x02a2+y−y02b2=1:

> 

implicitplot⁡eq,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.

> 

display⁡rotate⁡elli,π4

> 

display⁡ellipse⁡super,scaling=constrained

> 

ms≔13,12,23,1,32,2,3,5

ms≔13,12,23,1,32,2,3,5

(1)
> 

display⁡seq⁡ellipse⁡super=msi,legend=cat⁡m=,msi,color=Niagara ‖i,i=1..nops⁡ms,scaling=constrained

> 

display⁡ellipse⁡super=15,3,color=DarkRed,ellipse⁡super=2,5,color=DarkBlue,scaling=constrained

Compatibility

• 

The super option was introduced in Maple 2019.

• 

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

• 

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

• 

The rotate option was introduced in Maple 2023.

• 

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

See Also

plot/options

plot/structure

plots[display]

plottools

plottools[ellipticArc]