# Default color for Filling in Mathematica 9

The default color scheme for plots in my Mathematica version is ColorData. What about for the Filling option?

I believe it's the same, but with Opacity[0.2].

(Also, since Mathematica 10 it's ColorData instead of ColorData.)

• How do you find out the precise default value used for Opacity in Filling? – Jules Lamers Aug 28 '17 at 22:29
• @JulesLamers You can examine the InputForm of the Plot output and look for Opacity directives in it. Plot[1, {x, 0, 1}, PlotPoints -> 2, Filling -> Axis] // InputForm – Szabolcs Aug 29 '17 at 6:37
\$Version


"9.0 for Mac OS X x86 (64-bit) (January 24, 2013)"

max = 40;

funcs = #*x & /@ Range[max];

plt = Plot[funcs, {x, 0, 1},
PlotStyle -> Black,
Filling -> (Partition[Range[max], 2, 1] /.
{a_, b_} :> a -> {b})];


The filling colors between the plots are expressed in "HSB", i.e., Hue[{hue, saturation, brightness}]

clr = Cases[plt, {x_Opacity, y_Hue} :> {x, y}, Infinity];


The hue values are

data = clr[[All, 2, 1]];


These align with

hue[n_] := Mod[.67 + (Sqrt - 2) (n - 1), 1]

Plot[hue[n], {n, 0, max},
Epilog -> {Red, AbsolutePointSize, List @@@ (ColorConvert[#, "RGB" -> "HSB"] & /@ ColorData[1, "ColorList"]) -