Changeset 231 for trunk/SRC/ToBeReviewed/PLOTS/DIVERS/axis4pltz.pro
- Timestamp:
- 03/19/07 18:15:51 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/ToBeReviewed/PLOTS/DIVERS/axis4pltz.pro
r172 r231 1 ;------------------------------------------------------------2 ;------------------------------------------------------------3 ;------------------------------------------------------------4 1 ;+ 5 2 ; … … 9 6 ; @param MASK {in}{required} 10 7 ; 3d mask 11 ; 8 ; 12 9 ; @param GLAM {in}{required} 13 ; 2d longitude 14 ; 10 ; 2d longitude 11 ; 15 12 ; @param GPHI {in}{required} 16 13 ; 2d latitude … … 19 16 ; 1d depth 20 17 ; 21 ; @keyword XXAXIS 18 ; @keyword XXAXIS 22 19 ; to get the xaxis we need to use in pltbase 23 ; 24 ; @keyword ZZAXIS 20 ; 21 ; @keyword ZZAXIS 25 22 ; to get the yaxis we need to use in pltbase 26 23 ; 27 ; @keyword SIN 28 ; Activate this keyword if we want the x axis to be traced in sinus of the 24 ; @keyword SIN 25 ; Activate this keyword if we want the x axis to be traced in sinus of the 29 26 ; latitude when we make a drawing f(y) 30 27 ; 31 28 ; @keyword ZRATIO {default=2./3} 32 ; When the drawing has a zoomed part, it is the size rapport between the zoomed part, 29 ; When the drawing has a zoomed part, it is the size rapport between the zoomed part, 33 30 ; hz (zoom height), and the whole drawing, ht (total height). 34 31 ; 35 32 ; @keyword _EXTRA 36 ; used to pass yourkeywords37 ; 38 ; Others: see pltz 33 ; Used to pass keywords 34 ; 35 ; Others: see pltz 39 36 ; 40 37 ; … … 47 44 ; 48 45 ;- 49 ;------------------------------------------------------------ 50 ;------------------------------------------------------------ 51 ;------------------------------------------------------------ 52 46 ; 53 47 PRO axis4pltz, type, mask, glam, gphi, z, XXAXIS = xxaxis, ZZAXIS = zzaxis, SIN = sin, ZRATIO = zratio, ZOOM = zoom, PROFMAX = profmax, PROFMIN = profmin, _extra = ex 54 ;55 ; include common56 48 ; 57 49 compile_opt idl2, strictarrsubs … … 61 53 @updatekwd 62 54 ENDIF 63 55 64 56 ;-------------------------------------------------------------------- 65 57 ; define the mask used for this section … … 82 74 ENDCASE 83 75 ; 84 if type eq 'yz' then BEGIN 85 IF (size(gphi))[0] EQ 1 then xxaxis = gphi ELSE BEGIN 86 IF keyword_set(key_irregular) THEN BEGIN 76 if type eq 'yz' then BEGIN 77 IF (size(gphi))[0] EQ 1 then xxaxis = gphi ELSE BEGIN 78 IF keyword_set(key_irregular) THEN BEGIN 87 79 cln = (where(gphi EQ max(gphi)))[0] 88 80 xxaxis = reform(gphi[cln MOD nx, *]) … … 92 84 ENDIF ELSE BEGIN 93 85 xxaxis = glam[*, 0] 94 ENDELSE 86 ENDELSE 95 87 zzaxis = z 96 88 ;---------------------------------------------------------- … … 113 105 ; to draw from bottom to top (avoid using cell_fill) 114 106 CASE size(zzaxis, /n_dimensions) OF 115 1:zzaxis = reverse(-zzaxis) 116 2:zzaxis = reverse(-zzaxis, 2) 107 1:zzaxis = reverse(-zzaxis) 108 2:zzaxis = reverse(-zzaxis, 2) 117 109 ENDCASE 118 110 if mask[0] NE -1 then mask = reverse(mask, 2)
Note: See TracChangeset
for help on using the changeset viewer.