Re: want to limit range of shading in contour plot
- To: mathgroup at smc.vnet.net
- Subject: [mg117032] Re: want to limit range of shading in contour plot
- From: DrMajorBob <btreat1 at austin.rr.com>
- Date: Tue, 8 Mar 2011 05:35:09 -0500 (EST)
That's only half an example, without an f function... unless your problem
occurs for EVERY possible f?
Bobby
On Mon, 07 Mar 2011 04:48:18 -0600, lala <204girls at gmail.com> wrote:
>
> I want to plot a contour plot with shading, and my function drops
> quickly negative. However I only specify contours between -20 and -1,
> and I'd like to also restrict the shading to be within that... somehow
> mathematica makes the region outside of that colored for an arbitrary
> range, and I don't know how to get rid of it.
>
> ContourPlot[f[s, w]/, {s, -5, 2}, {w, -3.5, 2},
> Contours -> Table[n, {n, -20, -1}],
> ContourStyle -> {Thickness[0.002]},
> ColorFunction -> (ColorData["BlueGreenYellow"][
> Rescale[#, {-20, 1}]] &), PlotRangePadding -> 0,
> ColorFunctionScaling -> False]
>
> Is there any option in which I can limit the shading to lie within the
> contours specified only?
>
--
DrMajorBob at yahoo.com