Changeset 74 for trunk/SRC/ToBeReviewed/PLOTS/DIVERS/axis4pltz.pro
- Timestamp:
- 05/23/06 15:45:47 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/ToBeReviewed/PLOTS/DIVERS/axis4pltz.pro
r37 r74 41 41 ; 42 42 ; include common 43 @cm_ general43 @cm_4mesh 44 44 IF NOT keyword_set(key_forgetold) THEN BEGIN 45 45 @updatekwd … … 49 49 ; define the mask used for this section 50 50 ;-------------------------------------------------------------------- 51 52 53 54 51 if mask[0] NE -1 AND (size(mask))[0] NE 2 then begin 52 if type EQ 'xz' then mask = total(mask, 2) < 1 $ 53 ELSE mask = total(mask, 1) < 1 54 endif 55 55 ;-------------------------------------------------------------------- 56 56 ; define xxaxis and yyaxis the axis used for this section … … 66 66 ENDCASE 67 67 ; 68 if type eq 'yz' then BEGIN 69 if (size(gphi))[0] EQ 2 then xxaxis=reform(gphi[0, *]) ELSE xxaxis=gphi 70 if keyword_set(sin) then xxaxis = sin(!pi/180.*xxaxis) 71 if (size(z))[0] EQ 1 THEN zzaxis = z ELSE zzaxis = z 72 ENDIF ELSE BEGIN 73 xxaxis = glam[*, 0] 74 if (size(z))[0] EQ 1 then zzaxis = z ELSE zzaxis = z 75 ENDELSE 68 if type eq 'yz' then BEGIN 69 IF (size(gphi))[0] EQ 1 then xxaxis = gphi ELSE BEGIN 70 IF keyword_set(key_irregular) THEN BEGIN 71 cln = (where(gphi EQ max(gphi)))[0] 72 xxaxis = reform(gphi[cln MOD nx, *]) 73 ENDIF ELSE xxaxis = reform(gphi[0, *]) 74 ENDELSE 75 if keyword_set(sin) then xxaxis = sin(!pi/180.*xxaxis) 76 if (size(z))[0] EQ 1 THEN zzaxis = z ELSE zzaxis = z 77 ENDIF ELSE BEGIN 78 xxaxis = glam[*, 0] 79 if (size(z))[0] EQ 1 then zzaxis = z ELSE zzaxis = z 80 ENDELSE 76 81 ;---------------------------------------------------------- 77 82 ; on projette l''axe z dans [0,1] 78 83 ;---------------------------------------------------------- 79 80 if zoom ge profmax then zratio=1.81 82 83 84 85 86 87 88 89 84 if not keyword_set(zratio) then zratio = 2./3 85 if zoom ge profmax then zratio = 1. 86 if zoom LT profmax then begin 87 mp = projsegment([profmin, zoom], [0, zratio], /mp) 88 zzaxis[where(zzaxis LE zoom)] = mp[0]*zzaxis[where(zzaxis LE zoom)]+mp[1] 89 mp = projsegment([zoom, profmax], [zratio, 1], /mp) 90 zzaxis[where(zzaxis GE zoom)] = mp[0]*zzaxis[where(zzaxis GE zoom)]+mp[1] 91 ENDIF ELSE BEGIN 92 mp = projsegment([profmin, profmax], [0, 1], /mp) 93 zzaxis = mp[0]*zzaxis+mp[1] 94 ENDELSE 90 95 91 96 ; to draw from bottom to top (avoid using cell_fill) 92 93 1:zzaxis=reverse(-zzaxis)94 2:zzaxis=reverse(-zzaxis,2)95 96 if mask[0] NE -1 then mask=reverse(mask,2)97 CASE size(zzaxis, /n_dimensions) OF 98 1:zzaxis = reverse(-zzaxis) 99 2:zzaxis = reverse(-zzaxis, 2) 100 ENDCASE 101 if mask[0] NE -1 then mask = reverse(mask, 2) 97 102 98 103 return 99 104 end
Note: See TracChangeset
for help on using the changeset viewer.