Ignore:
Timestamp:
05/02/06 16:55:58 (18 years ago)
Author:
pinsard
Message:

upgrade of PLOTS/DIVERS according to cerbere.lodyc.jussieu.fr: /usr/home/smasson/SAXO_RD/ : files

File:
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/ToBeReviewed/PLOTS/DIVERS/placecolor.pro

    r35 r37  
    3939;------------------------------------------------------------ 
    4040;------------------------------------------------------------ 
    41 pro placecolor,pos,_extra = ex 
    42 @common 
     41pro placecolor, pos, _extra = ex 
    4342;------------------------------------------------------------ 
     43; include commons 
     44@cm_4ps 
     45   IF NOT keyword_set(key_forgetold) THEN BEGIN 
     46@updatenew 
     47   ENDIF 
     48;--------------------- 
     49; 
    4450   xsave = !x 
    4551   ysave = !y 
    4652   psave = !p 
    47  
     53; 
    4854   reinitplt, /z, /invert 
    4955   pos=1.*pos 
     56   mipgsz = min(page_size, max = mapgsz) 
    5057   if key_portrait eq 1 then begin 
    51       pos[0]=pos[0]/petitfeuille     
    52       pos[1]=pos[1]/grandfeuille     
    53       pos[2]=pos[2]/petitfeuille     
    54       pos[3]=pos[3]/grandfeuille     
     58      pos[0]=pos[0]/mipgsz   
     59      pos[1]=pos[1]/mapgsz     
     60      pos[2]=pos[2]/mipgsz  
     61      pos[3]=pos[3]/mapgsz     
    5562   endif else begin 
    56       pos[0]=pos[0]/grandfeuille     
    57       pos[1]=pos[1]/petitfeuille     
    58       pos[2]=pos[2]/grandfeuille     
    59       pos[3]=pos[3]/petitfeuille     
    60    endelse 
    61    if keyword_set(divisions) eq 0 then divisions=colorbardiv 
    62    if keyword_set(max) eq 0 then max=colorbarsup 
    63    if keyword_set(min) eq 0 then min=colorbarinf 
    64    COLORBAR, COLOR=0, DIVISIONS=divisions, DISCRET=couleur, cb_color = 0, $ 
    65     POSITION=pos, MAX=max, MIN=min, cb_charsize=!p.charsize, _extra = ex 
    66  
     63      pos[0]=pos[0]/mapgsz     
     64      pos[1]=pos[1]/mipgsz     
     65      pos[2]=pos[2]/mapgsz     
     66      pos[3]=pos[3]/mipgsz     
     67   ENDELSE 
     68; 
     69   def_myuniquetmpdir 
     70; 
     71   IF lmgr(/demo) EQ 1 THEN BEGIN 
     72; if we are in demo mode, we cannot save the parameters in a temporary file... 
     73@cm_demomode_used 
     74; 
     75      colnumb = colorbarparam.colnumb 
     76      clbinf = colorbarparam.clbinf  
     77      clbsup = colorbarparam.clbsup 
     78      clbdiv = colorbarparam.clbdiv 
     79; 
     80   ENDIF ELSE BEGIN 
     81      file = myuniquetmpdir + '4colorbar.dat' 
     82      IF file_test(file) THEN BEGIN 
     83         restore, file         
     84         if size(ex, /type) EQ 8 then BEGIN  
     85            if (where(tag_names(ex) EQ 'MIN'))[0] NE -1 then clbinf = ex.MIN 
     86            if (where(tag_names(ex) EQ 'MAX'))[0] NE -1 then clbsup = ex.MAX 
     87            if (where(tag_names(ex) EQ 'DIVISIONS'))[0] NE -1 then clbdiv = ex.DIVISIONS 
     88         ENDIF 
     89; 
     90         COLORBAR, COLOR = 0, DIVISIONS = clbdiv, DISCRET = colnumb $ 
     91          , cb_color = 0, POSITION = pos, MAX = clbsup $ 
     92          , MIN = clbinf, cb_charsize = !p.charsize $ 
     93          , _extra = ex 
     94      ENDIF 
     95   ENDELSE 
     96; 
    6797   !x = xsave 
    6898   !y = ysave 
Note: See TracChangeset for help on using the changeset viewer.