23.12.2012 Views

MATLAB Function Reference Volume 1: A - E - Bad Request

MATLAB Function Reference Volume 1: A - E - Bad Request

MATLAB Function Reference Volume 1: A - E - Bad Request

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

caxis<br />

2caxis<br />

Purpose Color axis scaling<br />

Syntax caxis([cmin cmax])<br />

caxis auto<br />

caxis manual<br />

caxis(caxis)<br />

v = caxis<br />

caxis(axes_handle,...)<br />

Description caxis controls the mapping of data values to the colormap. It affects any<br />

surfaces, patches, and images with indexed CData and CDataMapping set to<br />

scaled. It does not affect surfaces, patches, or images with true color CData or<br />

with CDataMapping set to direct.<br />

2-214<br />

caxis([cmin cmax]) sets the color limits to specified minimum and maximum<br />

values. Data values less than cmin or greater than cmax map to cmin and cmax,<br />

respectively. Values between cmin and cmax linearly map to the current<br />

colormap.<br />

caxis auto lets <strong>MATLAB</strong> compute the color limits automatically using the<br />

minimum and maximum data values. This is <strong>MATLAB</strong>’s default behavior.<br />

Color values set to Inf map to the maximum color, and values set to −Inf map<br />

to the minimum color. Faces or edges with color values set to NaN are not<br />

drawn.<br />

caxis manual and caxis(caxis) freeze the color axis scaling at the current<br />

limits. This enables subsequent plots to use the same limits when hold is on.<br />

v = caxis returns a two-element row vector containing the [cmin cmax]<br />

currently in use.<br />

caxis(axes_handle,...) uses the axes specified by axes_handle instead of<br />

the current axes.<br />

Remarks caxis changes the CLim and CLimMode properties of axes graphics objects.<br />

How Color Axis Scaling Works<br />

Surface, patch, and image graphics objects having indexed CData and<br />

CDataMapping set to scaled, map CData values to colors in the figure colormap

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

Saved successfully!

Ooh no, something went wrong!