Ignore:
Timestamp:
09/11/06 09:11:26 (18 years ago)
Author:
smasson
Message:

bugfix + manage roms outputs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SRC/ToBeReviewed/PLOTS/DIVERS/axis4pltz.pro

    r163 r172  
    9090    ENDELSE 
    9191    if keyword_set(sin) then xxaxis = sin(!pi/180.*xxaxis) 
    92     if (size(z))[0] EQ 1 THEN zzaxis = z ELSE zzaxis = z 
    9392  ENDIF ELSE BEGIN 
    9493    xxaxis = glam[*, 0] 
    95     if (size(z))[0] EQ 1 then zzaxis = z ELSE zzaxis = z 
    9694  ENDELSE  
     95  zzaxis = z 
    9796;---------------------------------------------------------- 
    9897; We project the z axis in [0,1] 
     
    102101  if zoom LT profmax then begin 
    103102    mp = projsegment([profmin, zoom], [0, zratio], /mp) 
    104     zzaxis[where(zzaxis LE zoom)] = mp[0]*zzaxis[where(zzaxis LE zoom)]+mp[1] 
     103    small = where(zzaxis LE zoom) 
     104    IF small[0] NE -1 THEN zzaxis[small] = mp[0]*zzaxis[small]+mp[1] 
    105105    mp = projsegment([zoom, profmax], [zratio, 1], /mp) 
    106     zzaxis[where(zzaxis GE zoom)] = mp[0]*zzaxis[where(zzaxis GE zoom)]+mp[1] 
     106    big = where(zzaxis GE zoom) 
     107    IF big[0] NE -1 THEN zzaxis[big] = mp[0]*zzaxis[big]+mp[1] 
    107108  ENDIF ELSE BEGIN 
    108109    mp = projsegment([profmin, profmax], [0, 1], /mp) 
Note: See TracChangeset for help on using the changeset viewer.