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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Patch PropertiesButtonDownFcn stringButton press callback routine. A callback routine that executes whenever youpress a mouse button while the pointer is over the patch object. Define thisroutine as a string that is a valid <strong>MATLAB</strong> expression or the name of an M-file.The expression executes in the <strong>MATLAB</strong> workspace.CDatascalar, vector, or matrixPatch colors. This property specifies the color of the patch. You can specify colorfor each vertex, each face, or a single color for the entire patch. The way<strong>MATLAB</strong> interprets CData depends on the type of data supplied. The data canbe numeric values that are scaled to map linearly into the current colormap,integer values that are used directly as indices into the current colormap, orarrays of RGB values. RGB values are not mapped into the current colormap,but interpreted as the colors defined. On true color systems, <strong>MATLAB</strong> uses theactual colors defined by the RGB triples. On pseudocolor systems, <strong>MATLAB</strong>uses dithering to approximate the RGB triples using the colors in the figure’sColormap and Dithermap.The following two diagrams illustrate the dimensions of CData with respect tothe coordinate data arrays, XData, YData, and ZData. The first diagramillustrates the use of indexed color.2-325

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

Saved successfully!

Ooh no, something went wrong!