Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Idl-pvware > Re: Plot perpen...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 2 Topic 5719 of 5741
Post > Topic >>

Re: Plot perpendicular lines of current plot?

by Loren Anderson <andersld@[EMAIL PROTECTED] > May 9, 2008 at 06:06 AM

On May 8, 6:20 am, Frank Wang <Muchi0...@[EMAIL PROTECTED]
> wrote:
> Hi all,
> I have a data set for a contour plot, then how can I plot lines
> perpendicular to the contour lines(just like contour using the /
> downhill keyword)? Is there any existing procedures, or how should I
> manipulate the data to get a proper matrix for this? A lot of thanks.
>
> Regards,
> Frank


I attempted this a while back with good results, but can't seem to
find the code.  Here's what I would do:
1) Use David Fanning's arcsample:
http://www.dfanning.com/programs/arcsample.pro
to find the indices of the original curve where you'd like to draw the
perpendicular lines.

2) Find the slope of the original curve near these indices.

3) Take the negative reciprocal of this slope, create a new point from
the equation of this line.

4) Connect the points output from arcsample to these new points.


I remember there being some strange sign issues that you'll have to
work out.

-Loren




 2 Posts in Topic:
Plot perpendicular lines of current plot?
Frank Wang <Muchi0734@  2008-05-08 03:20:59 
Re: Plot perpendicular lines of current plot?
Loren Anderson <anders  2008-05-09 06:06:28 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat May 17 10:52:25 CDT 2008.