How do you using the IDL to add a straight line of 45 degrees inclination to scatter plot of the square? [message #92033] |
Fri, 02 October 2015 00:06  |
ristight
Messages: 5 Registered: September 2015
|
Junior Member |
|
|
I want to add a line of 45 degrees inclination to scatter diagram using the IDL.
How do you rewrite this program?
Someone help me please.
;Program
pro sactter_plot
x1 = fltarr(3600,1200)
y1 = fltarr(3600,1200)
mvk = fltarr(3600,1200)
nrt = fltarr(3600,1200)
fname1='C:\Users\Desktop\mvk_20150331.txt'
fname2='C:\Users\Desktop\nrt_20150331.txt'
openr,1,fname1
openr,2,fname2
readf,1,x1
readf,2,y1
p=plot(x1,y1,aspect_ratio=1,xrange=[0,2000],yrange=[0,2000], linestyle='none',symbol='star',color='000000'XL,title='20150 331 precipitation',xtitle='mvk precipitation [mm]',ytitle='nrt precipitation [mm]')
close, /all
end
|
|
|
|