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

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

File:
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/ToBeReviewed/PLOTS/DESSINE/scontour.pro

    r33 r35  
    3131; EXAMPLE: 
    3232;      IDL> z = dist(100)  
    33 ;      IDL> scontour, z, nlevels=10,petit=[1,2,1],xstyle=1,ystyle=1 
     33;      IDL> scontour, z, nlevels=10,small=[1,2,1],xstyle=1,ystyle=1 
    3434;      IDL> @ps 
    3535; 
     
    4343@common 
    4444; 1) je reinitialise l''environnememt graphique (les variables !x, !y et !p):  
    45    if NOT keyword_set(NOREINITPLT) then reinitplt, _extra = ex  
     45  if NOT keyword_set(NOREINITPLT) then reinitplt, _extra = ex  
    4646; 2) je place le dessin a l'ecran comme sur le postcript  
    47    IF chkstru(ex, 'overplot')EQ 0 THEN placedessin, 'autre', _extra = ex 
     47; if ex contains norease and c_orientation keywords we force ex.noerase = 0 
     48  IF chkstru(ex, 'overplot') EQ 0 THEN placedessin, 'autre', _extra = ex 
     49; fiddle when noerase is used with c_orentation... 
     50; call contour with /nodata to get the graphic envoronment, then force 
     51; noerase = 0 and overplot = 1 
     52  IF size(ex, /type) EQ 8 THEN BEGIN 
     53; check if noerase is used with c_orentation 
     54    alltags = strlowcase(tag_names(ex)) 
     55    dummy = where(alltags EQ 'noerase', count1) 
     56    dummy = where(alltags EQ 'c_orientation', count2) 
     57    IF count1*count2 NE 0 THEN BEGIN  
     58      case n_params() OF 
     59        1:contour, x, /nodata, _EXTRA = ex 
     60        2:contour, x, y, /nodata, _EXTRA = ex 
     61        3:contour, x, y, z, /nodata, _EXTRA = ex 
     62      endcase 
     63      ex.noerase = 0 
     64      ex = get_extra(/overplot, _extra = ex) 
     65      noerase_orientation = 1 
     66    ENDIF  
     67  ENDIF  
    4868; 3) je fais mon joli dessin  
    49    case n_params() OF 
    50       1:contour, x, _EXTRA = ex 
    51       2:contour, x, y, _EXTRA = ex 
    52       3:contour, x, y, z, _EXTRA = ex 
     69  case n_params() OF 
     70    1:contour, x, xstyle = 1, ystyle = 1, _EXTRA = ex 
     71    2:contour, x, y, xstyle = 1, ystyle = 1, _EXTRA = ex 
     72    3:contour, x, y, z, xstyle = 1, ystyle = 1, _EXTRA = ex 
     73  ENDCASE 
     74; fiddle when noerase is used with c_orentation... draw the contour axis 
     75  IF keyword_set(noerase_orientation)  THEN BEGIN 
     76    ex.noerase = 1 
     77    ex.overplot = 0 
     78    case n_params() OF 
     79      1:contour, x, xstyle = 1, ystyle = 1, /nodata, _EXTRA = ex 
     80      2:contour, x, y, xstyle = 1, ystyle = 1, /nodata, _EXTRA = ex 
     81      3:contour, x, y, z, xstyle = 1, ystyle = 1, /nodata, _EXTRA = ex 
     82    ENDCASE 
     83  ENDIF 
     84; 4) je termine le dessin  
     85  terminedessin, _extra = ex  
    5386 
    54    endcase 
    55     
    56 ; 4) je termine le dessin  
    57    terminedessin, _extra=ex  
    58  
    59    return 
     87  return 
    6088end 
Note: See TracChangeset for help on using the changeset viewer.