M-File Help: plot_box | View code for plot_box |
Draw a box
plot_box(b, options) draws a box defined by b=[XL XR; YL YR] on the current plot with optional MATLAB linestyle options LS.
plot_box(x1,y1, x2,y2, options) draws a box with corners at (x1,y1) and (x2,y2), and optional MATLAB linestyle options LS.
plot_box('centre', P, 'size', W, options) draws a box with center at P=[X,Y] and with dimensions W=[WIDTH HEIGHT].
plot_box('topleft', P, 'size', W, options) draws a box with top-left at P=[X,Y] and with dimensions W=[WIDTH HEIGHT].
plot_box('matlab', BOX, LS) draws box(es) as defined using the MATLAB convention of specifying a region in terms of top-left coordinate, width and height. One box is drawn for each row of BOX which is [xleft ytop width height].
'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 |
plot_poly, plot_circle, plot_ellipse
© 1990-2014 Peter Corke.