Re: Does ContourPlot behave correctly?
- To: mathgroup at smc.vnet.net
- Subject: [mg59884] Re: [mg59822] Does ContourPlot behave correctly?
- From: "David Annetts" <davidannetts at aapt.net.au>
- Date: Wed, 24 Aug 2005 06:32:29 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
Hi Vladislav > > ContourPlot[Exp[-(x^2 + > y^2)/2], {x, -1, 1}, {y, -1, 1}, > Contours -> {.39, .5, .95}, > ColorFunction -> ( > GrayLevel[#1] &), PlotPoints -> 100]; > > ContourPlot[Exp[-(x^2 + > y^2)/2], {x, -1, 1}, {y, -1, 1}, > Contours -> {.39, .9, .95}, > ColorFunction -> (GrayLevel[#1] &), > PlotPoints -> 100]; > > > I obtain two different plots. The smallest circle is the same > for the two pictures, it is OK becouse it corresponds to the > Contor at 0.95. > > I expected to have 3 circle on the two pictures with the only > difference in the second circle at .9 or .5. In reallity, I > have only two circles in the first plot and three circles in > the second one. > Moreover the external contour at .39 is not the same in the > two pictures. > > Can anybody explain or justify this behavoir? There are actually three contours in the first plot, but with your original colour function, it's difficult to see them. To check this, replace GrayLevel with Hue. Regards, Dave.