Direction of color transitions on lines
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.
LineColorDirection determines the direction
in which the color transitions for
LineColorType = Dichromatic etc.
LineColorType 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 y axis for 2D objects:
f := plot::Function2d(sin(x), x=-PI..PI, LineWidth = 1, LineColorType = Rainbow): plot(f)
LineColorDirection, this direction
can be set to any angle. Note that
an inherited attribute and may therefore be set at “top level”
in the plot call:
plot(f, LineColorDirection = [1, 1])