M-File Help: plot_circle | View code for plot_circle

# plot_circle

Draw a circle

plot_circle(C, R, options) draws a circle on the current plot with centre C=[X,Y] and radius R. If C=[X,Y,Z] the circle is drawn in the XY-plane at height Z.

H = plot_circle(C, R, options) as above but return handles. For multiple circles H is a vector of handles, one per circle.

If C (2xN) then N circles are drawn and H is Nx1. If R (1x1) then all circles have the same radius or else R (1xN) to specify the radius of each circle.

## Options

'edgecolor' | the color of the circle's edge, Matlab color spec
'fillcolor' | the color of the circle's interior, Matlab color spec
'alpha' | transparency of the filled circle: 0=transparent, 1=solid
'alter', H | alter existing circles with handle H

For an unfilled ellipse any MATLAB LineProperty options can be given, for a filled ellipse any MATLAB PatchProperty options can be given.

## Notes

- The circle(s) is added to the current plot.

## See also

plot_ellipse, plot_box, plot_poly

© 1990-2014 Peter Corke.