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.

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.

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

Animation

First draw the circle and keep its graphic handle, then alter it, eg.

H = PLOT_CIRCLE(C, R)
PLOT_ELLIPSE(C, R, 'alter', H);

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

Notes

See also

plot_ellipse, plot_box, plot_poly


 

© 1990-2014 Peter Corke.