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.
with⁡plottools:
with⁡plots:
c ≔ sector⁡1,1,5,0..Pi4,color=blue:
display⁡c,axes=none,scaling=constrained
display⁡sector⁡0,0,1..2,Pi3..Pi2,color=Khaki,axes=none,scaling=constrained
d ≔ sector⁡1,1,5,Pi4..4⁢Pi3,color=red:
e ≔ sector⁡1,1,5,4⁢Pi3..35⁢Pi18,color=green:
f ≔ sector⁡1,1,5,35⁢Pi18..2⁢Pi,color=yellow:
display⁡c,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
What kind of issue would you like to report? (Optional)