Re: ContourStyle -> {{Dashing[0.15, 0.5]}} has no effect
- To: mathgroup at smc.vnet.net
- Subject: [mg92421] Re: ContourStyle -> {{Dashing[0.15, 0.5]}} has no effect
- From: Jean-Marc Gulliet <jeanmarc.gulliet at gmail.com>
- Date: Tue, 30 Sep 2008 21:49:47 -0400 (EDT)
- Organization: The Open University, Milton Keynes, UK
- References: <gbt2ur$lh5$1@smc.vnet.net>
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