MathGroup Archive 2010

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

Search the Archive

Re: ContourStyle Question

  • To: mathgroup at smc.vnet.net
  • Subject: [mg110553] Re: ContourStyle Question
  • From: Bob Hanlon <hanlonr at cox.net>
  • Date: Fri, 25 Jun 2010 07:27:21 -0400 (EDT)

Not exactly what you asked for but easy to do:

ContourPlot[{
  Cos[x] + Cos[y] == 1/2,
  Cos[x] + Cos[y] == 0.35},
 {x, 0, 4 Pi}, {y, 0, 4 Pi},
 ContourStyle -> {
   Directive[Thick, Blue],
   Directive[Thick, Red,
    AbsoluteDashing[5]]}]

ContourPlot[{
  Cos[x] + Cos[y] == 1/2,
  Cos[x] + Cos[y] == 0.65},
 {x, 0, 4 Pi}, {y, 0, 4 Pi},
 ContourStyle -> {
   Directive[Thick, Blue],
   Directive[Thick, Red,
    AbsoluteDashing[5]]}]


Bob Hanlon

---- Jon <jkparry at hotmail.com> wrote: 

=============
Hi All

I'd like to plot contour lines consisting of a solid line with short diagonal lines on one side, something like this

--------------------  <---(solid line along the contour)
/////////////////  <---(short diagonal lines on one side)

I'm making a plot of experimental data and I want to show that the region on one side of the contour is allowed while the other side is not. 

I don't want resort to shading the entire region because it is quite a busy figure and the colouring will make it difficult to read. 

Is there a ContourStyle which does this?
If not, can I create my own ContourStyle which can?

Thanks in advance!

Jon





  • Prev by Date: Re: Newby Q: How to specify reals
  • Next by Date: Replacement rule limitations
  • Previous by thread: ContourStyle Question
  • Next by thread: Re: ContourStyle Question