MathGroup Archive 2010

[Date Index] [Thread Index] [Author Index]

Search the Archive

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.


  • Prev by Date: multiple variables in pure function used in map.
  • Next by Date: Poisson-Boltzmann equation
  • Previous by thread: Re: multiple variables in pure function used in map.
  • Next by thread: Re: Matching FillingStyle to PlotStyle