MathGroup Archive 2013

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

Search the Archive

Intersection points of two contour plots

  • To: mathgroup at smc.vnet.net
  • Subject: [mg130665] Intersection points of two contour plots
  • From: Luiz Melo <lmelo at ufsj.edu.br>
  • Date: Wed, 1 May 2013 03:36:14 -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

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: Wolfram Technology Conference Presentations
  • Next by Date: Stochastic malloc error with Graphics3D
  • Previous by thread: Re: Wolfram Technology Conference Presentations
  • Next by thread: Re: Intersection points of two contour plots