;$Id: pcomp_kfk_all.pro,v 1.3 2012/05/31 09:09:17 brandenb Exp $
if !d.name eq 'PS' then begin
  device,xsize=18,ysize=12,yoffset=3
  !p.charthick=3 & !p.thick=3 & !x.thick=3 & !y.thick=3
  thick1=2
  thick2=5
  thick3=2
  thick4=5
  thickt=6
endif else begin
  thick1=2
  thick2=5
  thick3=2
  thick4=5
  thickt=6
endelse
;
ihel=0 ;(non-helical)
ihel=1 ;(helical)
;
!p.charsize=1.7
!x.margin=[8.8,.9]
!y.margin=[3.2,.9]
;
;  sample to compare time series form different directories
;
k0=15.
;
if ihel eq 1 then begin
  dir1='short512pm1a3_noforce'
  dir2='short512pm1a3_noforcek1'
  dir3='short512pm1a3_noforcek01'
  dir4='short512pm100a3_noforce'
  dirt='short512pm1a3_noforce_tdep'
  ;
  yr=[.8,11.]
  print & print,'--> helical case'
  print,"mv idl.ps ~/tex/tina/ObsSigna/pcomp_kft_hel_all.eps" & print
endif else begin
  dir1='short512pm1b3_noforce'
  dir2='short512pm1b3_noforcek1'
  dir3='short512pm1b3_noforcek01'
  dir4='short512pm100b3_noforce'
  dirt='short512pm1b3_noforce_tdep'
  ;
  yr=[.6,10.]
  print & print,'--> non-helical case'
  print,"mv idl.ps ~/tex/tina/ObsSigna/pcomp_kft_nohel_all.eps" & print
endelse
;
!x.range=[1.,200.]
!x.title='!7g!6'
!y.title='!7n!d!8M!6!n/!7k!d!80!6!n'
siz2=2.0
sizs=1.3
siz=1.6
;
restore,'../'+dir1+'/pkf.sav'
plot_oo,dt,k0/kI,yr=yr,/nodata
oplot,dt,k0/kI,thick=thick1
;
restore,'../'+dir2+'/pkf.sav'
oplot,dt,k0/kI,col=55,thick=thick2,li=2
;
restore,'../'+dir3+'/pkf.sav'
oplot,dt,k0/kI,col=155,thick=thick3,li=2
;
restore,'../'+dir4+'/pkf.sav'
oplot,dt,k0/kI,col=122,thick=thick4
;
restore,'../'+dirt+'/pkf.sav'
oplot,dt,k0/kI,col=188,thick=thickt,li=3
;
;  put labels
;
if ihel eq 1 then begin
  ; helical case
  xx=[8.,80.] & oplot,xx,k0*3.3e-2*xx^.667,li=1
  xyouts,siz=siz,12.,3.4,'!7g!6!u2/3'
  ;xx=[10.,140.] & oplot,xx,k0*2.8e-2*xx^.500,li=1
  ;xx=[20.,160.] & oplot,xx,0.7*xx^.400,li=1
  xyouts,siz=siz,33.,8.3,'!6Pr!d!8M!6!n=1'
  xyouts,siz=siz,40.,2.8,'!7a!6=1',col=55
  xyouts,siz=siz,50.,k0*9e-2,'!7a!6=10',col=155
  xyouts,siz=sizs,85.,4.95,'!6Pr!d!8M!6!n=100',col=122
  xyouts,siz=sizs,75.,3.4,'!6Pr!d!8M!6!n=!7g!6!u3/2!n',col=188
endif else begin
  ; non-helical case
  xx=[30.,140.] & oplot,xx,k0*2.6e-2*xx^.520,li=1
  xx=[30.,140.] & oplot,xx,k0*3.4e-2*xx^.333,li=1
  xx=[30.,140.] & oplot,xx,k0*2.4e-2*xx^.333,li=1
  xx=[20.,140.] & oplot,xx,.7*xx^.250,li=1
  xyouts,siz=siz,28.,3.5,'!6Pr!d!8M!6!n=1'
  xyouts,siz=siz,110.,2.3,'!7a!6=1',col=55
  xyouts,siz=siz,100.,1.5,'!7a!6=10',col=155
  xyouts,siz=sizs,75.,2.8,'!6Pr!d!8M!6!n=100',col=122
  xyouts,siz=sizs,75.,1.9,'!6Pr!d!8M!6!n=!7g!6!u3/2!n',col=188
  xyouts,siz=sizs,75.,4.4,'!7g!6!u1/2!n'
  xyouts,siz=sizs,30.,1.0,'!7g!6!u1/3!n'
endelse
;
END
