Skip to Main Content Skip to Search
Product Documentation

LineColorTypeline coloring types

LineColorType selects the type of line coloring used.

→ Examples

Attribute

Type

Value

See Also:

FillColorType, LineColor, LineColor2, LineColorFunction

Details:

Example 1

By default, lines are drawn in one flat color:

plotfunc2d(sin(x))

MuPAD graphics

plot(plot::Polygon2d([[-1,-1], [1,-1], [1,1], [-1,1]],
                     Closed = TRUE, Filled = FALSE))

MuPAD graphics

Example 2

Using LineColorType = Dichromatic, Monochrome, or Rainbow causes a height-dependent color effect:

plotfunc2d(sin(x), LineColorType = Rainbow)

MuPAD graphics

Note that height coloring depends on the height of the whole scene, not only on that of individual objects:

plot(
plot::Function2d(sin(x) + 0.2, LineColorType = Dichromatic),
plot::Function2d(sin(x) + 0.0, LineColorType = Monochrome),
plot::Function2d(sin(x) - 0.2, LineColorType = Rainbow),
LineColor = RGB::Red, LineColor2 = RGB::Blue
)

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