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

Home » Public Forums » archive » Re: Multiple plots in one figure
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: Multiple plots in one figure [message #68306 is a reply to message #68305] Mon, 12 October 2009 15:39 Go to previous messageGo to previous message
Nicki is currently offline  Nicki
Messages: 14
Registered: September 2009
Junior Member
Oh, okay, that was pretty easy...

Thanks!

So what if i have another equation where i put the y in and that's the
one I want to plot.
so let's say

g=5*y

and i want to plot x versus g...
Or maybe I just print my code for my specific problem:

a=70.

nrows=3.
dfov=60.
mu=438.689
r_tot=1.5
r_i=[0.1,1.0]
wdet=[25,100]

f=findgen(90)+10.

r=dfov/2/(sin(a/2/180*!pi))
z=r+f

;________________________________
for i=0,1 do begin N=2.*!pi*(r+f)/(1.1*wdet[i])*Nrows

d=sqrt(R_tot^2-(r/f)^2*(R_i[i])^2)/((r/f)+1.)-alog(2)/mu*tan (a/2*!pi/
180)

deffs=sqrt(d^2+2/mu*d*tan(a/2*!pi/180)+2/(mu^2)*(tan(a/2/180 *!pi))^2)

S=N*deffs^2/16/(r^2)*100

endfor
;____________________________________________

for i=0,1 do begin
if i eq 0 $
then plot, N, S
elso oplot, N, S, linestyle=i
endfor

Does not work... I tried to change the N and the d to N[i] and d[i]
and then also the following N and d and and also the deffs to deffs[i]
and the S to S[i]

and then

for i=0,1 do begin
if i eq 0 $
then plot, N[i], S[i] $
else oplot, N[i], S[i], linestyle=i
endfor

but that does not work either...
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Browse for Cloud-Free MODIS Images
Next Topic: Re: Browse for Cloud-Free MODIS Images

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

Current Time: Wed Oct 08 19:31:18 PDT 2025

Total time taken to generate the page: 0.00441 seconds