Direction of color transitions on surfaces
MuPAD® notebooks are not recommended. Use MATLAB® live scripts instead.
MATLAB live scripts support most MuPAD functionality, though there are some differences. For more information, see Convert MuPAD Notebooks to MATLAB Live Scripts.
FillColorDirection determines the direction
in which the color transitions for
FillColorType = Dichromatic etc.
FillColorType to some other value than
Functional, MuPAD® produces
a “height-coloring.” By default, this color method actually
uses the height of a point. Using
the axis along which the color method should be applied can be changed.
By default, MuPAD uses height coloring along the z axis for 3D objects:
s := plot::Spherical([sin(r),thet/(r+1)+1, thet*r], r=0..1, thet=0..3*PI, Submesh=[2,2]): plot(s)
FillColorDirection, the color
can be rotated on the object:
plot(s, FillColorDirection = [0, 1, 0])