FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Forum index » Science and Technology » Math » Symbolic
Hide contours below a given curve.
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
Author Message
jl_03824@yahoo.com
science forum beginner


Joined: 05 Oct 2005
Posts: 2

PostPosted: Thu May 04, 2006 3:18 pm    Post subject: Hide contours below a given curve. Reply with 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.

Jun Lin
Back to top
Robert B. Israel
science forum Guru


Joined: 24 Mar 2005
Posts: 2151

PostPosted: Thu May 04, 2006 5:36 pm    Post subject: Re: Hide contours below a given curve. Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
The time now is Fri Jan 09, 2009 12:59 pm | All times are GMT
Forum index » Science and Technology » Math » Symbolic
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Curve integral - correct or not? Daniel Nierro Undergraduate 2 Thu Jul 20, 2006 2:47 pm
No new posts how to avoid overfitting in training ... gino Math 1 Fri Jul 07, 2006 5:54 am
No new posts Are there any closed-form expression ... comtech Math 1 Tue Jul 04, 2006 8:43 pm
No new posts A problem in fitting curve Yu Bo Math 5 Fri Jun 30, 2006 6:22 am
No new posts IaSNe light curve rise times dwhig265@aol.com Relativity 1 Mon Jun 19, 2006 9:29 pm

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
[ Time: 0.1963s ][ Queries: 16 (0.1273s) ][ GZIP on - Debug on ]