Matching FillingStyle to PlotStyle
- To: mathgroup at smc.vnet.net
- Subject: [mg107626] Matching FillingStyle to PlotStyle
- From: "Fabrice P. Laussy" <fabrice.laussy at google.mail.com>
- Date: Sat, 20 Feb 2010 06:37:36 -0500 (EST)
How to use filling colors that are consistent with plot style colors
when those are not the default?
When I use a given PlotStyle for the curve color, I would like the
filling to be the same. However:
Plot[Evaluate[Table[Sin[x + Pi n/4], {n, 0, 7}]], {x, 0, 2 Pi},
Filling -> Axis, PlotStyle -> ColorData[3, "ColorList"]]
doesn't adjust the filling. If I try to force it by hand, I loose opacity:
Plot[{Cos[x], Sin[x]}, {x, 0, 2 Pi},
Filling -> {
1 -> {0, ColorData["TemperatureMap"][.1]},
2 -> {0, ColorData["TemperatureMap"][.8]}
}
]
Best,
Fabrice.