Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #14380 > unrolled thread

Re: Intersection points of two contour plots

Started by"djmpark" <djmpark@comcast.net>
First post2013-05-02 01:39 +0000
Last post2013-05-02 01:39 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Intersection points of two contour plots "djmpark" <djmpark@comcast.net> - 2013-05-02 01:39 +0000

#14380 — Re: Intersection points of two contour plots

From"djmpark" <djmpark@comcast.net>
Date2013-05-02 01:39 +0000
SubjectRe: Intersection points of two contour plots
Message-ID<klsg4d$t7s$1@smc.vnet.net>
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@comcast.net 
http://home.comcast.net/~djmpark/index.html 


From: Luiz Melo [mailto:lmelo@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

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web