Add transparency to objects in axes
alpha
sets the face transparency for objects
in the current axes that support transparency. Specify value
value
as 'clear'
or 'opaque'
, or as a number in
the range [0, 1]. A value of 0
makes the objects transparent,
and value of 1
makes the objects fully opaque.
alpha
varies the transparency across all
image, patch, surface, and scatter objects in the axes. This option sets the
corresponding alpha data properties for the objects.alphadata
alpha
controls the transparency of the
faces for patch, surface, and scatter objects in the axes. This option sets the
facealpha
FaceAlpha
on patch and surface objects. For scatter
objects, it sets the MarkerFaceAlpha
and
MarkerEdgeAlpha
properties.
alpha
controls the interpretation
of the alpha data values for all image, patch, surface, and scatter objects in
the axes. This option sets the alphadatamapping
AlphaDataMapping
property on
the objects.
alpha(
sets the transparency for
the objects specified by obj
,___)obj
. The option,
obj
, can precede any of the input arguments in the
previous syntaxes. Use single quotes around input arguments that are character
arrays, for example, alpha(obj,'opaque')
.
alpha(
sets the transparency for
the objects in the axes specified by ax
,___)ax
, instead of the
current axes. Specify ax
as the first input argument. You
cannot specify both the ax
and obj
inputs.