MathGroup Archive 1999

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

Search the Archive

Re: How display negative contours with dashed lines?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg16872] Re: How display negative contours with dashed lines?
  • From: weber at math.uni-bonn.de (Matthias Weber)
  • Date: Mon, 5 Apr 1999 02:24:17 -0400
  • Organization: RHRZ - University of Bonn (Germany)
  • References: <7e1d1b$bd6@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

In article <7e1d1b$bd6 at smc.vnet.net>, WOOD DAVID M
<dmwood at slate.Mines.EDU> wrote:

> Howdy all.
> 
>   Despite rooting around like a cyber-pig after Mathematica truffles
> (with DejaNews, AltaVista, and on MathSource), I can find no
> suggestions or even mention of something that I suspect isn't hard to
> do [except for me :)]
> 
> I'd like to produce contour plots for which NEGATIVE function values
> are indicated as dashed lines, while other values use solid lines.
> 
> Can anyone suggest how I can on-the-fly specify ContourStyle options
> that will display negative contour values (say in ContourPlot or
> ListContourPlot) as *dashed* lines, via (e.g.) Dashing [or in any
> other way]?
> 

ContourPlot[Max[Sin[x]Sin[y],0],{x,-2,2},{y,-2,2},
  ContourStyle->{RGBColor[1,0,0]},ContourShading -> False];

ContourPlot[Min[Sin[x]Sin[y],0],{x,-2,2},{y,-2,2},
  ContourStyle->{Dashing[{0.15,0.05}],RGBColor[0,1,0]},
  ContourShading -> False];

Show[%,%%]

Matthias


  • Prev by Date: Re: Plotting multiple outputs from cpu intensive functi
  • Next by Date: Re: Re: Re: Precision graphics
  • Previous by thread: Re: How display negative contours with dashed lines?
  • Next by thread: Re: How display negative contours with dashed lines?