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

Home » Public Forums » archive » Re: Adding straight lines to a plot
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Adding straight lines to a plot [message #73473 is a reply to message #73472] Thu, 11 November 2010 14:38 Go to previous messageGo to previous message
penteado is currently offline  penteado
Messages: 866
Registered: February 2018
Senior Member
Administrator
On Nov 11, 8:28 pm, fgg <fabioguimaraesgoncal...@gmail.com> wrote:
> Hi,
>
> Is there a function in IDL to add a straight line through an existing
> plot? Something like the 'abline' function in R, where all you need is
> to specify the y-value for a horizontal line (or the x-value for a
> vertical line).
>
> Thanks

The easiest way is to overplot a line. That is, overplot two 2-element
arrays, one with the initial and final x, the other with the initial
and final y.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: IDL_IDLBridge limited to 4?
Next Topic: Adding straight lines to a plot

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

Current Time: Sat Oct 11 03:37:32 PDT 2025

Total time taken to generate the page: 0.07807 seconds