12.07.2015 Views

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

ectangle propertiesmust define this property as a default value for rectangles. For example, thestatement,set(0,'DefaultRectangleCreateFcn',...'set(gca,''DataAspectRatio'',[1,1,1])')defines a default value on the root level that sets the axes DataAspectRatiowhenever you create a rectangle object. <strong>MATLAB</strong> executes this routine aftersetting all rectangle properties. Setting this property on an existing rectangleobject has no effect.The handle of the object whose CreateFcn is being executed is accessible onlythrough the root CallbackObject property, which you can query using gcbo.Curvatureone- or two-element vector [x,y]Amount of horizontal and vertical curvature. This property specifies thecurvature of the property sides, which enables the shape of the rectangle tovary from rectangular to ellipsoidal. The horizontal curvature x is the fractionof width of the rectangle that is curved along the top and bottom edges. Thevertical curvature y is the fraction of the height of the rectangle that is curvedalong the left and right edges.The values of x and y can range from 0 (no curvature) to 1 (maximumcurvature). A value of [0,0] creates a rectangle with square sides. A value of[1,1] creates an ellipse. If you specify only one value for Curvature, then thesame length (in axes data units) is curved along both horizontal and verticalsides. The amount of curvature is determined by the shorter dimension.DeleteFcnstringDelete rectangle callback routine. A callback routine that executes when youdelete the rectangle object (e.g., when you issue a delete command or clear theaxes or figure). <strong>MATLAB</strong> executes the routine before deleting the object’sproperties so these values are available to the callback routine.The handle of the object whose DeleteFcn is being executed is accessible onlythrough the root CallbackObject property, which you can query using gcbo.EdgeColor{Colorspec} | noneColor of the rectangle edges. This property specifies the color of the rectangleedges as a color or specifies that no edges be drawn.2-394

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!