sector - Maple Help

plottools

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

 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.
 • The name pieslice is accepted as a synonym for sector for compatibility with earlier releases.

Examples

 > $\mathrm{with}\left(\mathrm{plottools}\right):$
 > $\mathrm{with}\left(\mathrm{plots}\right):$
 > $c≔\mathrm{sector}\left(\left[1,1\right],5,0..\frac{\mathrm{\pi }}{4},\mathrm{color}=\mathrm{blue}\right):$
 > $\mathrm{display}\left(c,\mathrm{axes}=\mathrm{none},\mathrm{scaling}=\mathrm{constrained}\right)$
 > $\mathrm{display}\left(\mathrm{sector}\left(\left[0,0\right],1..2,\frac{\mathrm{\pi }}{3}..\frac{\mathrm{\pi }}{2},\mathrm{color}="Khaki"\right),\mathrm{axes}=\mathrm{none},\mathrm{scaling}=\mathrm{constrained}\right)$
 > $d≔\mathrm{sector}\left(\left[1,1\right],5,\frac{\mathrm{\pi }}{4}..\frac{4\mathrm{\pi }}{3},\mathrm{color}=\mathrm{red}\right):$
 > $e≔\mathrm{sector}\left(\left[1,1\right],5,\frac{4\mathrm{\pi }}{3}..\frac{35\mathrm{\pi }}{18},\mathrm{color}=\mathrm{green}\right):$
 > $f≔\mathrm{sector}\left(\left[1,1\right],5,\frac{35\mathrm{\pi }}{18}..2\mathrm{\pi },\mathrm{color}=\mathrm{yellow}\right):$
 > $\mathrm{display}\left(c,d,e,f,\mathrm{axes}=\mathrm{none},\mathrm{scaling}=\mathrm{constrained}\right)$

Compatibility

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