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

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

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

alpha<br />

2alpha<br />

Purpose Set transparency properties for objects in current axes<br />

Syntax alpha(face_alpha)<br />

alpha(alpha_data)<br />

alpha(alpha_data_mapping)<br />

alpha(object_handle,...)<br />

Description alpha sets one of three transparency properties, depending on what arguments<br />

you specify with the call to this function.<br />

2-48<br />

FaceAlpha<br />

alpha(face_alpha) set the FaceAlpha property of all image, patch, and<br />

surface objects in the current axes. You can set face_alpha to:<br />

• a scalar – set the FaceAlpha property to the specified value (for images, set<br />

the AlphaData property to the specified value)<br />

• 'flat' – set the FaceAlpha property to flat<br />

• 'interp' – set the FaceAlpha property to interp<br />

• 'texture' – set the FaceAlpha property to texture<br />

• 'opaque' – set the FaceAlpha property to 1<br />

• 'clear' – set the FaceAlpha property to 0<br />

See Specifying a Single Transparency Value for more information.<br />

AlphaData (Surface Objects)<br />

alpha(alpha_data) sets the AlphaData property of all surface objects in the<br />

current axes. You can set alpha_data to:<br />

• a matrix the same size as CData – sets the AlphaData property to the<br />

specified values<br />

• 'x' – set the AlphaData property to be the same as XData<br />

• 'y' – set the AlphaData property to be the same as YData<br />

• 'z' – set the AlphaData property to be the same as ZData<br />

• 'color' – set the AlphaData property to be the same as CData

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

Saved successfully!

Ooh no, something went wrong!