Skip to Main Content Skip to Search
Product Documentation

LineColorDirectionthe direction of color transitions on lines

LineColorDirectionXx-component of the direction of color transitions on lines

LineColorDirectionYy-component of the direction of color transitions on lines

LineColorDirectionZz-component of the direction of color transitions on lines

LineColorDirection determines the direction in which the color transitions for LineColorType = Dichromatic etc. take place.

→ Examples

Attribute

Type

Value

See Also:

FillColorDirection, LineColor, LineColor2, LineColorType

Details:

When setting LineColorType to some other value than Flat or Functional, MuPAD® produces a “height-coloring.” By default, this color method actually uses the height of a point. Using LineColorDirection, the axis along which the color method should be applied can be changed.

Example 1

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)

MuPAD graphics

By changing LineColorDirection, this direction can be set to any angle. Note that LineColorDirection is an inherited attribute and may therefore be set at “top level” in the plot call:

plot(f, LineColorDirection = [1, 1])

MuPAD graphics

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS