MathGroup Archive 2011

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

Search the Archive

Re: DiscretePlot filling is darker above axis than below


Thanks very much, that fixed it. Just have to remember to use Directive[ ] when I've got more than one style specifier.

> Use Directive
>
> Show[
> DiscretePlot[
>  Sin[t], {t, 0, 2 \[Pi], \[Pi]/6},
>  ExtentSize -> \[Pi]/12,
>  Filling -> Axis,
>  FillingStyle -> Directive[Red, Opacity[0.5]]],
> Plot[Sin[t], {t, 0, 2 Pi}]]
>
>
>
> Bob Hanlon
>
> ---- "Christopher O. Young" <cy56 at comcast.net> wrote:
>
> =============
> Can't seem to get the filling to come out the same darkness above and below
> the axis.
>
> Show[
> DiscretePlot[
>  Sin[t], {t, 0, 2 \[Pi], \[Pi]/6},
>  ExtentSize -> \[Pi]/12,
>  PlotStyle -> {Red, Opacity[0.5]},
>  Filling -> Axis,
>  FillingStyle -> {Red, Opacity[0.5]}
>  ],
>
> Plot[Sin[t], {t, 0, 2 Pi}
>  ]
> ]
>




> Show[
> DiscretePlot[
>  Sin[t],
>  {t, 0, 2 \[Pi], \[Pi]/6},
>  ExtentSize -> \[Pi]/12,
>  PlotStyle -> Directive[{Red, Opacity[.5]}],
>  Filling -> Axis,
>  FillingStyle -> Directive[{Red, Opacity[.5]}]
>  ],
> Plot[Sin[t], {t, 0, 2 Pi}]
> ]

Chris Young
cy56 at comcast.net



  • Prev by Date: Simple OpenCL program in Mathematica
  • Next by Date: Re: DiscretePlot filling is darker above axis than below
  • Previous by thread: Re: DiscretePlot filling is darker above axis than below
  • Next by thread: Re: DiscretePlot filling is darker above axis than below