plottools - Maple Programming Help

Online Help

All Products    Maple    MapleSim


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

plottools

  

sector

  

generate 2-D plot object for a sector of a disk or annulus

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

sector([x, y], r, a..b, options)

sector([x, y], r1..r2, a..b, options)

Parameters

[x, y]

-

center of the sector

r

-

radius of the sector

r1..r2

-

starting and finishing radius of an annular sector

a

-

starting angle in radians

b

-

finishing angle in radians

options

-

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

Description

• 

The sector command creates a two-dimensional plot data object, which when displayed is a sector of the disk of radius r and centered at [x,y].  The sector starts at radian angle a and ends at radian angle b.

• 

If the radius is given as a range r1..r2, the sector of an annulus of inside radius r1 and outside radius r2 is created.

• 

The plot data object produced by the sector 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:

csector1,1,5,0..π4,color=blue:

displayc,axes=none,scaling=constrained

displaysector0,0,1..2,π3..π2,color=Khaki,axes=none,scaling=constrained

dsector1,1,5,π4..4π3,color=red:

esector1,1,5,4π3..35π18,color=green:

fsector1,1,5,35π18..2π,color=yellow:

displayc,d,e,f,axes=none,scaling=constrained

Compatibility

• 

The plottools[sector] command was introduced in Maple 16.

• 

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

See Also

plot/options

plot/structure

plots[display]

plottools

plottools[arc]