plottools
sector
generate 2-D plot object for a sector of a disk or annulus
Calling Sequence
Parameters
Description
Examples
Compatibility
sector([x, y], r, a..b, options)
sector([x, y], r1..r2, a..b, options)
[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.
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.
The name pieslice is accepted as a synonym for sector for compatibility with earlier releases.
withplottools:
withplots:
c≔sector1,1,5,0..π4,color=blue:
displayc,axes=none,scaling=constrained
displaysector0,0,1..2,π3..π2,color=Khaki,axes=none,scaling=constrained
d≔sector1,1,5,π4..4π3,color=red:
e≔sector1,1,5,4π3..35π18,color=green:
f≔sector1,1,5,35π18..2π,color=yellow:
displayc,d,e,f,axes=none,scaling=constrained
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[arc]
Download Help Document