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.

Patch Propertieslength(colormap). <strong>MATLAB</strong> maps values less than 1 to the first color in thecolormap, and values greater than length(colormap) to the last color in thecolormap. Values with a decimal portion are fixed to the nearest, lowerinteger.Childrenmatrix of handlesAlways the empty matrix; patch objects have no children.Clipping{on} | offClipping to axes rectangle. When Clipping is on, <strong>MATLAB</strong> does not display anyportion of the patch outside the axes rectangle.CreateFcnstringCallback routine executed during object creation. This property defines acallback routine that executes when <strong>MATLAB</strong> creates a patch object. You mustdefine this property as a default value for patches. For example, the statement,set(0,'DefaultPatchCreateFcn','set(gcf,''DitherMap'',my_dither_map)')defines a default value on the root level that sets the figure DitherMap propertywhenever you create a patch object. <strong>MATLAB</strong> executes this routine aftersetting all properties for the patch created. Setting this property on an existingpatch object 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.DeleteFcnstringDelete patch callback routine. A callback routine that executes when you deletethe patch object (e.g., when you issue a delete command or clear the axes (cla)or figure (clf) containing the patch). <strong>MATLAB</strong> executes the routine beforedeleting the object’s properties so these values are available to the callbackroutine.The handle of the object whose DeleteFcn is being executed is accessible onlythrough the root CallbackObject property, which you can query using gcbo.DiffuseStrength scalar >= 0 and

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

Saved successfully!

Ooh no, something went wrong!