MathGroup Archive 2008

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

Search the Archive

Re: ContourStyle -> {{Dashing[0.15, 0.5]}} has no effect


er wrote:

> Dashing below has no effect. I must be doing something wrong...Any
> suggestion would be nice. Thanks!
> 
> 
> With[{dist = NormalDistribution[0, 1/2]},
>   ContourPlot[PDF[dist, x2]PDF[dist, x3], {x2, -2, 2}, {x3, -2, 2},
>     ContourShading -> False,
>     ContourStyle -> {{Dashing[0.15, 0.5], Thickness[0.002],
================================^^^^^^^^^^
Syntax error: the arguments must be passed as a *list*, e.g.

     Dashing[{0.15, 0.5}]

>           RGBColor[1, 0, 0]}}]
>   ]

The following works as expected.

With[{dist = NormalDistribution[0, 1/2]},
  ContourPlot[PDF[dist, x2] PDF[dist, x3], {x2, -2, 2}, {x3, -2, 2},
   ContourShading -> False,
   ContourStyle -> {{Dashing[{0.15, 0.5}], Thickness[0.002],
      RGBColor[1, 0, 0]}}]]

Regards,
-- Jean-Marc



  • Prev by Date: Re: ContourStyle -> {{Dashing[0.15, 0.5]}} has no effect
  • Next by Date: Re: ContourStyle -> {{Dashing[0.15, 0.5]}} has no effect
  • Previous by thread: Re: ContourStyle -> {{Dashing[0.15, 0.5]}} has no effect
  • Next by thread: Re: ContourStyle -> {{Dashing[0.15, 0.5]}} has no effect