3-D Visualization Previous page   Next Page

Specifying Transparency

Transparency values, which range from [0 1], are referred to as alpha values. An alpha value of 0 means completely transparent (i.e., invisible); an alpha value of 1 means completely opaque (i.e., no transparency).

MATLAB treats transparency in a way that is analogous to how it treats color for the respective objects:

See the following sections for more information on color:

Transparency Properties

The following table summarizes the object properties that control transparency.

Property
Purpose
AlphaData
Transparency data for image and surface objects
AlphaDataMapping
Transparency data mapping method
FaceAlpha
Transparency of the faces (patch and surface only)
EdgeAlpha
Transparency of the edges (patch and surface only)
FaceVertexAlphaData
Patch only alpha data property
ALim
Alpha axis limits
ALimMode
Alpha axis limits mode
Alphamap
Figure alphamap

Transparency Functions

There are three functions that simplify the process of setting alpha properties.

Function
Purpose
alpha
Set or query transparency properties for objects in current axes
alphamap
Specify the figure alphamap
alim
Set or query the axes alpha limits


Previous page  Making Objects Transparent Specifying a Single Transparency Value Next page

© 1994-2005 The MathWorks, Inc.