Changeset 37


Ignore:
Timestamp:
01/16/08 01:50:18 (16 years ago)
Author:
ericg
Message:

Default position of legend is now Upper Left (UL)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/procs/legend_overlay.pro

    r36 r37  
    66; decode legend format from command line (see def_work cmdi.proj) 
    77; 
    8 leg_pos = strmid(leg_format, 0, 2); (UR=-1, UL, LR, LL) 
     8leg_pos = strmid(leg_format, 0, 2); (UL=-1, UR, LR, LL) 
    99IF strpos(leg_format, '_') NE -1 THEN BEGIN  
    1010   txt_format = strmid(leg_format, 3, strlen(leg_format)) 
     
    9898CASE plttyp OF  
    9999   'pltt': BEGIN  
    100       IF strmid(leg_pos, 1, 1) EQ 'L' THEN BEGIN ; (L)eft 
     100      IF strmid(leg_pos, 1, 1) EQ 'R' THEN BEGIN ; (R)ight 
     101         x_leg_1 = time(floor(px_1r*(jptmax-1))) 
     102         x_leg_2 = time(floor(px_2r*(jptmax-1))) 
     103         x_leg_t = time(floor(px_tr*(jptmax-1))) 
     104      ENDIF ELSE BEGIN          ; (L)eft 
    101105         x_leg_1 = time(floor(px_1l*(jptmax-1))) 
    102106         x_leg_2 = time(floor(px_2l*(jptmax-1))) 
    103107         x_leg_t = time(floor(px_tl*(jptmax-1))) 
    104       ENDIF ELSE BEGIN          ; (R)ight 
    105          x_leg_1 = time(floor(px_1r*(jptmax-1))) 
    106          x_leg_2 = time(floor(px_2r*(jptmax-1))) 
    107          x_leg_t = time(floor(px_tr*(jptmax-1))) 
    108108      ENDELSE 
    109109   END  
     
    124124         ELSE:  
    125125      ENDCASE  
    126       IF strmid(leg_pos, 1, 1) EQ 'L' THEN BEGIN ; (L)eft 
     126      IF strmid(leg_pos, 1, 1) EQ 'R' THEN BEGIN ; (R)ight  
     127         x_leg_1 = xmin+px_1r*x_dim 
     128         x_leg_2 = xmin+px_2r*x_dim 
     129         x_leg_t = xmin+px_tr*x_dim 
     130      ENDIF ELSE BEGIN          ; (L)eft 
    127131         x_leg_1 = xmin+px_1l*x_dim 
    128132         x_leg_2 = xmin+px_2l*x_dim 
    129133         x_leg_t = xmin+px_tl*x_dim 
    130       ENDIF ELSE BEGIN          ; (R)ight 
    131          x_leg_1 = xmin+px_1r*x_dim 
    132          x_leg_2 = xmin+px_2r*x_dim 
    133          x_leg_t = xmin+px_tr*x_dim 
    134134      ENDELSE 
    135135   END  
     
    140140      xmin = minc2 
    141141      x_dim = maxc2-minc2 
    142       IF strmid(leg_pos, 1, 1) EQ 'L' THEN BEGIN ; (L)eft 
     142      IF strmid(leg_pos, 1, 1) EQ 'R' THEN BEGIN ; (R)ight 
     143         x_leg_t = xmin+px_tr*x_dim 
     144      ENDIF ELSE BEGIN          ; (L)eft 
    143145         x_leg_t = xmin+px_tl*x_dim 
    144       ENDIF ELSE BEGIN          ; (R)ight 
    145          x_leg_t = xmin+px_tr*x_dim 
    146146      ENDELSE  
    147147   END  
Note: See TracChangeset for help on using the changeset viewer.