| MATLAB Function Reference | ![]() |
Specify the figure alphamap (transparency)
Syntax
alphamap(alpha_map) alphamap('parameter') alphamap('parameter',length) alphamap('parameter',delta) alphamap(figure_handle,...) alpha_map = alphamap alpha_map = alphamap(figure_handle) alpha_map = alphamap('parameter')
Description
alphamap
enables you to set or modify a figure's Alphamap property. Unless you specify a figure handle as the first argument, alphamap operates on the current figure.
alphamap(alpha_map)
set the AlphaMap of the current figure to the specified m-by-1 array of alpha values.
alphamap('parameter')
create a new or modify the current alphamap. You can specify the following parameters:
default - set the AlphaMap property to the figure's default alphamap
rampup - create a linear alphamap with increasing opacity (default length equals the current alphamap length)
rampdown - create a linear alphamap with decreasing opacity (default length equals the current alphamap length)
vup - create an alphamap that is opaque in the center and becomes more transparent linearly towards the beginning and end (default length equals the current alphamap length)
vdown - create an alphamap that is transparent in the center and becomes more opaque linearly towards the beginning and end (default length equals the current alphamap length)
increase - modify the alphamap making it more opaque (default delta is .1, which is added to the current values)
decrease - modify the alphamap making it more transparent (default delta is .1, which is subtracted from the current values)
spin - rotate the current alphamap (default delta is 1; note that delta must be an integer)
alphamap('parameter',length)
creates a new alphamap with the length specified by length (used with parameters: rampup, rampdown, vup, vdown)
alphamap('parameter',delta)
modifies the existing alphamap using the value specified by delta (used with parameters: increase, decrease, spin).
alphamap(figure_handle,...)
performs the operation on the alphamap of the figure identified by figure_handle.
alpha_map = alphamap
return the current alphamap.
alpha_map = alphamap(figure_handle)
returns the current alphamap from the figure identified by figure_handle.
alpha_map = alphamap('parameter')
retruns the alphamap modified by the parameter, but does not set the AlphaMap property.
See Also
Image: AlphaData, AlphaDataMapping
Patch: FaceAlpha, AlphaData, AlphaDataMapping
Surface: FaceAlpha, AlphaData, AlphaDataMapping
Transparency for related functions
Transparency in 3-D Visualization for examples
| alpha | angle | ![]() |