Changeset 37
- Timestamp:
- 01/16/08 01:50:18 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/procs/legend_overlay.pro
r36 r37 6 6 ; decode legend format from command line (see def_work cmdi.proj) 7 7 ; 8 leg_pos = strmid(leg_format, 0, 2); (U R=-1, UL, LR, LL)8 leg_pos = strmid(leg_format, 0, 2); (UL=-1, UR, LR, LL) 9 9 IF strpos(leg_format, '_') NE -1 THEN BEGIN 10 10 txt_format = strmid(leg_format, 3, strlen(leg_format)) … … 98 98 CASE plttyp OF 99 99 '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 101 105 x_leg_1 = time(floor(px_1l*(jptmax-1))) 102 106 x_leg_2 = time(floor(px_2l*(jptmax-1))) 103 107 x_leg_t = time(floor(px_tl*(jptmax-1))) 104 ENDIF ELSE BEGIN ; (R)ight105 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)))108 108 ENDELSE 109 109 END … … 124 124 ELSE: 125 125 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 127 131 x_leg_1 = xmin+px_1l*x_dim 128 132 x_leg_2 = xmin+px_2l*x_dim 129 133 x_leg_t = xmin+px_tl*x_dim 130 ENDIF ELSE BEGIN ; (R)ight131 x_leg_1 = xmin+px_1r*x_dim132 x_leg_2 = xmin+px_2r*x_dim133 x_leg_t = xmin+px_tr*x_dim134 134 ENDELSE 135 135 END … … 140 140 xmin = minc2 141 141 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 143 145 x_leg_t = xmin+px_tl*x_dim 144 ENDIF ELSE BEGIN ; (R)ight145 x_leg_t = xmin+px_tr*x_dim146 146 ENDELSE 147 147 END
Note: See TracChangeset
for help on using the changeset viewer.