comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Overplotting 50% lines
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Overplotting 50% lines [message #39775] Mon, 14 June 2004 05:06
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Mark Douglas writes:

> I have a plot consisting of a strictly decreasing set of data (a
> distribution - percent of y greater than x) and I would like to
> overplot a 50% line onto this, that is one that comes across from 0.5
> on the y-axis, stops when it intersects the graph, then goes down to
> the x-axis.
>
> No matter what I do I can't get it to work. I'm either missing
> something really obvious or this is impossible. Any help please?

Seems to me the only "trick" will be finding the point
of intersection. I'd probably use VALUE_LOCATE to get
close, the interpolate (a simple linear interpolation
will work if your data is reasonably spaced) between
that point and the next. A couple of PLOTS commands
would draw the lines.

You can find a similar, although not exact, approach
to the problem here:

http://www.dfanning.com/graphics_tips/fillarea.html

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: addition
Next Topic: Re: addition

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Thu Oct 09 23:02:37 PDT 2025

Total time taken to generate the page: 1.60344 seconds