Re: implicit plot ??
- From: "Roger Stafford" <ellieandrogerxyzzy@xxxxxxxxxxxxxxxxxxxxxx>
- Date: Sat, 31 May 2008 03:09:01 +0000 (UTC)
pluton <plutonesque@xxxxxxxxx> wrote in message
<b98f1a0b-18fe-4bb4-832a-
a239b147f298@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>...
...........----------------
I now want to plot the intersection of the surface with plane Z=0, and
I know
that it exists. Is there something like an implicit plot or something.
Or do I have to built this intersection by myself ?
Presumably in your second post when you say Z = 0 you mean that you want
to plot the points where DR equals zero.
The surface which 'surf' produces obtains its effect by drawing little line
segments connecting neighboring points in the k and omega mesh whose
endpoints are at the corresponding DR height values. I would suggest
locating those line segments among these which have opposite signs for DR
at the two endpoints, and doing a linear interpolation between them. In other
words, find all DR(q,p) and DR(q+1,p) pairs or DR(q,p) and DR(q,p+1) pairs
which are of opposite sign. This linear interpolation is a simple operation.
That would give you a large set of points which could be plotted. I am not
knowledgeable enough to know how to superimpose a plot of these points
together with the surface plot on the same graphic display, but I suspect
there is a way.
By the above interpolation I mean this. Suppose, say, DR(q,p) and DR(q
+1,p) have opposite signs. Call D! = DR(q,p) and D2 = DR(q+1,p). Then
(1-t)*D1+t*D2
represents the line segment between the two points with t as a parameter,
and it crosses zero at t = -D1/(D2-D1), which would correspond to the
argument q+t. Linear interpolation with k and Omega would place them at
k0 = (1-t)*k(p,q) + t*k(p,q+1) and
Omega0 = (1-t)*Omega(p,q) + t*Omega(p,q+1)
values. This gives you a point (k0,Omega0,0) to be plotted which would lie
on one of the surface line segments.
Roger Stafford
.
- Follow-Ups:
- Re: implicit plot ??
- From: Roger Stafford
- Re: implicit plot ??
- References:
- implicit plot ??
- From: pluton
- Re: implicit plot ??
- From: pluton
- implicit plot ??
- Prev by Date: Re: Related to image intensity
- Next by Date: Re: Hours Mean Values for meteorological date
- Previous by thread: Re: implicit plot ??
- Next by thread: Re: implicit plot ??
- Index(es):
Relevant Pages
|