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.

caxisPurpose2caxisColor axis scalingSyntaxDescriptioncaxis([cmin cmax])caxis autocaxis manualcaxis(caxis)v = caxiscaxis controls the mapping of data values to the colormap. It affects anysurfaces, patches, and images with indexed CData and CDataMapping set toscaled. It does not affect surfaces, patches, or images with true color CData orwith CDataMapping set to direct.caxis([cmin cmax]) sets the color limits to specified minimum and maximumvalues. Data values less than cmin or greater than cmax map to cmin and cmax,respectively. Values between cmin and cmax linearly map to the currentcolormap.caxis auto lets <strong>MATLAB</strong> compute the color limits automatically using theminimum and maximum data values. This is <strong>MATLAB</strong>’s default behavior.Color values set to Inf map to the maximum color, and values set to −Inf mapto the minimum color. Faces or edges with color values set to NaN are not drawn.caxis manual and caxis(caxis) freeze the color axis scaling at the currentlimits. This enables subsequent plots to use the same limits when hold is on.v = caxis returns a two-element row vector containing the [cmin cmax]currently in use.Remarkscaxis changes the CLim and CLimMode properties of axes graphics objects.surface, patch, and image graphics objects with indexed CData andCDataMapping set to scaled map CData values to colors in the figure colormapeach time they render. CData values equal to or less than cmin map to the firstcolor value in the colormap, and CData values equal to or greater than cmaxmap to the last color value in the colormap. <strong>MATLAB</strong> performs the followinglinear transformation on the intermediate values (referred to as C below) to2-72

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

Saved successfully!

Ooh no, something went wrong!