This is documentation for Mathematica 3, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)
 Documentation / Mathematica / Built-in Functions / Graphics and Sound / Advanced Options  /
DefaultColor

  • DefaultColor is an option for graphics functions which specifies the default color to use for lines, points, etc.
  • The setting for DefaultColor must be a CMYKColor, GrayLevel, Hue or RGBColor directive.
  • The default setting is DefaultColor->Automatic, which gives a default color complementary to the background specified.
  • See the Mathematica book: Section 2.9.3.
  • See also: Prolog, Background, FontColor, TextStyle.

    Further Examples

    This colors the entire plot green.

    Evaluate the cell to see the graphic.

    In[1]:=