MathGroup Archive 2013

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

Search the Archive

Re: Intersection points of two contour plots

  • To: mathgroup at smc.vnet.net
  • Subject: [mg130676] Re: Intersection points of two contour plots
  • From: "djmpark" <djmpark at comcast.net>
  • Date: Wed, 1 May 2013 21:39:30 -0400 (EDT)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • Delivered-to: l-mathgroup@wolfram.com
  • Delivered-to: mathgroup-outx@smc.vnet.net
  • Delivered-to: mathgroup-newsendx@smc.vnet.net
  • References: <31212095.569.1367393879367.JavaMail.root@m06>

Do you want something like this:

ContourPlot[Sin[3 x y], {x, -3, 3}, {y, -3, 3},
 Contours -> {0},
 ContourShading -> False,
 ContourStyle -> Red,
 RegionFunction -> Function[{x, y}, x y <= 0],
 Exclusions -> {x == 0, y == 0}] 


David Park
djmpark at comcast.net 
http://home.comcast.net/~djmpark/index.html 


From: Luiz Melo [mailto:lmelo at ufsj.edu.br] 


Hi group,
Please consider the example below to illustrate my question (the original
problem is somehow much more complicated):

t1 = Table[Sin[3 x*y], {x, -3, 3, .1}, {y, -3, 3, .1}];

t2 = Table[If[x*y < 0, Sin[3 x*y]], {x, -3, 3, .1}, {y, -3, 3, .1}];

p1 = ListContourPlot[t1, Contours -> {0}, ContourShading -> False,
   DataRange -> {{-3, 3}, {-3, 3}}, ContourStyle -> Black];

p2 = ListContourPlot[t2, Contours -> {0}, ContourShading -> False,
   DataRange -> {{-3, 3}, {-3, 3}}, ContourStyle -> {Red, Dashed, Thick}];

Show[p1, p2]

Is there a way to show only the results of the intersection of these two
contour plots?

Thank you
Luiz




  • Prev by Date: Re: Function with optional default argument cannot cache results
  • Next by Date: Help with RootLocusPlot
  • Previous by thread: Re: Intersection points of two contour plots
  • Next by thread: Re: Intersection points of two contour plots