MATLAB Function Reference    
alpha

Set transparency properties for objects in current axes

Syntax

Description

alpha sets one of three transparency properties, depending on what arguments you specify with the call to this function.

FaceAlpha

alpha(face_alpha) set the FaceAlpha property of all image, patch, and surface objects in the current axes. You can set face_alpha to:

See Specifying a Single Transparency Value for more information.

AlphaData (Surface Objects)

alpha(alpha_data) sets the AlphaData property of all surface objects in the current axes. You can set alpha_data to:

AlphaData (Image Objects)

alpha(alpha_data) sets the AlphaData property of all image objects in the current axes. You can set alpha_data to:

FaceVertexAlphaData (Patch Objects)

alpha(alpha_data) sets the FaceVertexAlphaData property of all patch objects in the current axes. You can set alpha_data to:

See Mapping Data to Transparency for more information.

AlphaDataMapping

alpha(alpha_data_mapping) sets the AlphaDataMapping property of all image, patch, and surface objects in the current axes. You can set alpha_data_mapping to:

alpha(object_handle,value) set the transparency property only on the object identified by object_handle

See Also

alim, alphamap

Image: AlphaData, AlphaDataMapping

Patch: FaceAlpha, FaceVertexAlphaData, AlphaDataMapping

Surface: FaceAlpha, AlphaData, AlphaDataMapping

Transparency for related functions

Transparency in 3-D Visualization for examples


  allchild alphamap