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

Home » Public Forums » archive » Re: Add diagonal 1:1 line in 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: Add diagonal 1:1 line in a plot? [message #53933 is a reply to message #53930] Mon, 07 May 2007 20:33 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
DirtyHarry writes:

> Goodday, Everyone.
>
> I am writing a classical scientific paper comparing MODIS-retrieved
> data with ground measured data. I found several papers on this. Almost
> all of those papers have figures with 1:1 diagonal lines, and I want
> to draw this with IDL.
>
> I tried this way.
>
> pro OneOne ; Display 1:1 line
>
> device, decomposed=0, set_font='arial*24*bold'
> loadct, 30
>
> window, xsize=700, ysize=700
>
> readcol, 'dat.txt', nws, mod07, format='F, F'
> n=n_elements(nws)
>
> vsym, 24
> plot, nws, mod07, psym =2, title ='1:1 line - NWS vs MOD07', xtitle =
> 'NWS', ytitle = 'MOD07', xrange = [-5, 10], yrange = [-5, 10]
>
> end
>
> Now I got a plot with several dots. However, still I don't know how to
> add the diagonal 1:1 line. Please give me a suggestion. Thanks.

OPlot, [-5, 10], [-5, 10]

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: regular expressions (parsing strings)
Next Topic: Re: Object Graphics Code Generator

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

Current Time: Thu Oct 09 09:20:45 PDT 2025

Total time taken to generate the page: 0.87889 seconds