|
|
| Author |
Message |
jl_03824@yahoo.com science forum beginner
Joined: 05 Oct 2005
Posts: 2
|
Posted: Thu May 04, 2006 3:18 pm Post subject:
Hide contours below a given curve.
|
|
|
I am plotting two groups of curves: one, A(x, y) =
Const, is produced by ContourPlot, and another one,
y=f(x) is by Plot. Some parts of a few contour curves
of A(x, y) = const are located below the curve y=f(x).
I need to hide those parts of contours below the
curve, and to determine (x, y) at which the contours
intersect the curve. I don't know how to realize such
a plot, and I shall be appreciating if anybody would
like to help.
Jun Lin |
|
| Back to top |
|
 |
Robert B. Israel science forum Guru
Joined: 24 Mar 2005
Posts: 2151
|
Posted: Thu May 04, 2006 5:36 pm Post subject:
Re: Hide contours below a given curve.
|
|
|
In article <1146755893.653489.169840@j33g2000cwa.googlegroups.com>,
<jl_03824@yahoo.com> wrote:
| Quote: | I am plotting two groups of curves: one, A(x, y) =
Const, is produced by ContourPlot, and another one,
y=f(x) is by Plot. Some parts of a few contour curves
of A(x, y) = const are located below the curve y=f(x).
I need to hide those parts of contours below the
curve, and to determine (x, y) at which the contours
intersect the curve. I don't know how to realize such
a plot, and I shall be appreciating if anybody would
like to help.
|
You don't say what software you're using. I'll assume it's
Maple, although the commands would be contourplot and
plot rather than ContourPlot and Plot. To hide (or rather,
not draw) the parts of the contour plot below the curve
y=f(x), you might do something like this:
| Quote: | with(plots):
display(plot(f(x),x = a .. b, colour = blue), |
contourplot(A(x,y), x = a .. b, y = f(x) .. c));
Finding intersections of the contour A(x,y) = c with y = f(x)
amounts to solving the equation A(x,f(x)) = c. Depending
on what A and f are, this may not be possible symbolically,
so you may want to use fsolve to get a numerical solution.
Note that fsolve only returns one solution unless the equation
is polynomial. You could also use RootFinding[Analytic] (assuming
the functions involved are analytic), which finds all solutions
in a rectangle in the complex plane, and discard the ones that are
not real, or you could use allsolve from my Maple Advisor Database
<http://www.math.ubc.ca/~israel/advisor>
Robert Israel israel@math.ubc.ca
Department of Mathematics http://www.math.ubc.ca/~israel
University of British Columbia Vancouver, BC, Canada |
|
| Back to top |
|
 |
Google
|
|
| Back to top |
|
 |
|
|
The time now is Fri Jan 09, 2009 12:59 pm | All times are GMT
|
|
Guitar Lessons | Debt Consolidation | Bankruptcy | Bikini Models | Free Cingular Ringtones
|
|
Copyright © 2004-2005 DeniX Solutions SRL
|
|
Other DeniX Solutions sites:
Electronics forum |
Medicine forum |
Unix/Linux blog |
Unix/Linux documentation |
Unix/Linux forums
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|