Skip to Main Content Skip to Search
Product Documentation

Colorthe main color

Color refers to the main color of an object, which depends on the object type.

→ Examples

Attribute

Type

Value

See Also:

Colors, FillColor, LineColor, PointColor

Details:

Example 1

Color is useful for unified input of different object types:

plot(plot::Function3d(sin(x-y/2), Color = RGB::Green),
     plot::Point3d([0, 0, 0], Color = RGB::Red),
     plot::Curve3d([x, 0, sin(x)], x = -6..6,
                   LineWidth = 2*unit::mm,
                   Color = RGB::Blue),
     Scaling = Constrained)

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