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

Home » Public Forums » archive » 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
Add diagonal 1:1 line in a plot? [message #53934] Mon, 07 May 2007 19:35
kim20026 is currently offline  kim20026
Messages: 54
Registered: November 2006
Member
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.

First, I tried this with a simple data file. First column is ground-
measured air temperature, second column is MODIS-retrieved/processed
air temperature.

dat.txt
-4.2 -1.4
0 2.7
2.8 6.9
5.3 4.1
3.8 2.7
5.4 2.9
3.3 1.9
4.6 3
1.6 3.6
5.2 3.2
5.4 5.9
7.9 6.1
4.3 7.8
9.2 6.6

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.

Harry
[Message index]
 
Read Message
Previous Topic: mpfit: meaning of status flag
Next Topic: genetic algorithm

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

Current Time: Thu Oct 09 23:03:46 PDT 2025

Total time taken to generate the page: 0.56705 seconds