M-File Help: plot_circle View code for plot_circle

plot_circle

Draw a circle on the current plot

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.

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.

See also

plot_ellipse


 

© 1990-2012 Peter Corke.