Ignore:
Timestamp:
05/09/06 17:04:13 (18 years ago)
Author:
pinsard
Message:

miscellaneous modifications according to cerbere.lodyc.jussieu.fr: /usr/home/smasson/SAXO_RD/

File:
1 edited

Legend:

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

    r35 r67  
    2424;            valmask) et type doit qd meme etre specifie pour qu''on 
    2525;            sache de quel trace il sagit. Pour avoir une legende 
    26 ;            correcte, respecifier la zone d''extraction via BOITE 
     26;            correcte, respecifier la zone d''extraction via BOXZOOM 
    2727;          * 1d: uniquement pour les traces de type 't'. Type doit qd 
    2828;            meme etre specifie pour qu''on sache de quel trace il 
    2929;            sagit. Pour avoir une legende correcte, respecifier la zone 
    30 ;            d''extraction via BOITE 
     30;            d''extraction via BOXZOOM 
    3131;       2) une structure repondant aux critaire specifies par 
    3232;       litchamp.pro. cf. IDL> xhelp,'litchamp'. Le tableau contennu ds 
     
    5353; KEYWORD PARAMETERS: 
    5454; 
    55 ;       BOITE:vecteur indiquant la zone geographique (3d) sur laquelle doit 
     55;       BOXZOOM:vecteur indiquant la zone geographique (3d) sur laquelle doit 
    5656; etre fait l''extraction du champ pour faire le hovmoeller. 
    57 ; Si BOITE a : 
    58 ; 1 element : l''extraction est faite sur [lon1, lon2, lat1, lat2, 0.,boite[0]] 
    59 ; 2 elements: l''extraction est faite sur [lon1, lon2, lat1, lat2, boite[0],boite[1]] 
    60 ; 4 elements: l''extraction est faite sur [Boite, prof1, prof2] 
    61 ; 5 elements: l''extraction est faite sur [Boite[0:3], 0, Boite[4]] 
    62 ; 6 elements: l''extraction est faite sur Boite 
    63 ; 
    64 ; Ou lon1, lon2,lat1,lat2,prof1,prof2 sont les variables globales 
     57; Si BOXZOOM a : 
     58; 1 element : l''extraction est faite sur [lon1, lon2, lat1, lat2, 0.,boxzoom[0]] 
     59; 2 elements: l''extraction est faite sur [lon1, lon2, lat1, lat2, boxzoom[0],boxzoom[1]] 
     60; 4 elements: l''extraction est faite sur [Boxzoom, vert1, vert2] 
     61; 5 elements: l''extraction est faite sur [Boxzoom[0:3], 0, Boxzoom[4]] 
     62; 6 elements: l''extraction est faite sur Boxzoom 
     63; 
     64; Ou lon1, lon2,lat1,lat2,vert1,vert2 sont les variables globales 
    6565; definies lors du dernier domdef! 
    6666; 
     
    7171;      CB_CHARSIZE: The character size of the color bar annotations 
    7272; 
     73;        COAST_COLOR: the color of the coastline. 
     74;                     defaut value is 0 => black 
     75; 
     76;        COAST_THICK: the thickness of the coastline. 
     77;                     defaut value is 1 
     78; 
     79;        /CONT_NOFILL: activer pour ne pas remplir les points masques 
     80;        pour les laisser en transparent!  
     81;        Rq: on trace qd meme le contour du mask 
     82; 
     83;        CONT_COLOR: the color of the continent. defaut value is 
     84;        (!d.n_colors - 1) < 255 => white 
     85; 
    7386;       CONTINTERVALLE: lorsque CONTOUR est active, valeur d''un 
    74 ; intervalle entre deux isolignes traces par un trait ds la couleur 
    75 ; c_lab. Il peut ainsi etre different de celui specifie par INTERVALLE 
     87; intervalle entre deux isolignes traces par un trait. Il peut ainsi 
     88; etre different de celui specifie par INTERVALLE  
    7689; qui, cas ce cas, ne controle que les isolignes coloriees en 
    7790; couleurs. Si aucun min n''est specifie, on choisit un contour min qui va 
     
    8699;       CONTMAX: lorsque CONTOUR est active, valeur maximum que l''on 
    87100; veut prendre en compte dans le trace des isolignes traces par un 
    88 ; trait de couleur c_lab. Par defaut on prend le max (sur les pts mer) 
     101; trait. Par defaut on prend le max (sur les pts mer) 
    89102; du tableau passe ds le mot cle CONTOUR.  
    90103; 
    91104;       CONTMIN: lorsque CONTOUR est active, valeur minimum que l''on 
    92105; veut prendre en compte dans le trace des isolignes traces par un 
    93 ; trait de couleur c_lab. Par defaut on prend le max (sur les pts mer) 
     106; trait. Par defaut on prend le max (sur les pts mer) 
    94107; du tableau passe ds le mot cle CONTOUR.  
    95108; 
    96109;       CONTNLEVEL: lorsque CONTOUR est active, nombre de contours 
    97 ; trace par un trait de couleur c_lab a dessiner (actif si 
     110; trace par un trait a dessiner (actif si 
    98111; CONTLABEL=0) par defaut =20. 
    99112; 
     
    118131; INTERVALLE ne specifie que intervalle entre 2 isolignes coloriees en 
    119132; couleur. Pour specifier l''intervalle entre 2 isolignes traces par un trait 
    120 ; de couleur c_lab utiliser CONTINTERVALLE. 
     133; utiliser CONTINTERVALLE. 
    121134; 
    122135;       /INV: inverse le vecteur couleur utilise pour colorier le graphe 
     
    126139; label correspondant aux cas n. cf label.pro 
    127140; Rq: Qd CONTOUR est active, ne specifie le type de label que pour les 
    128 ; isolignes coloriees en couleur. Pour celles tracees par un trait de 
    129 ; couleur c_lab utiliser CONTLABEL. 
     141; isolignes coloriees en couleur. Pour celles tracees par un trait 
     142; utiliser CONTLABEL.  
    130143; 
    131144;       /LANDSCAPE: oblige la feuille ou le fenetre a l''ecran a etre 
     
    162175;       les couleurs 
    163176; 
    164 ;       /NOCOULEUR: activer si on veut juste les contours en noir et 
     177;       /NOFILL: activer si on veut juste les contours en noir et 
    165178;       blanc sur fond blanc 
    166179; 
     
    246259; d'ouvrir plusieurs fenetres). par defaut on ouvre 'IDL0' 
    247260; 
    248 ;       YSURX: rapport d'echelle entre y et x. Par defaut=1 
     261;       YXASPECT: rapport d'echelle entre y et x. Par defaut=1 
    249262; Par defaut on adapte pour occupe une grande partie de la feuille en sortie 
    250263; postScript ou pour cree une fenetre pas trop etiree 
     264; 
     265;       /ZEROMIDDLE: fo force the middle of the colorbar to be equal 
     266;       to 0 (force max=max(abs([min,max])) and min=-max) 
    251267; 
    252268; COMMON BLOCKS: 
     
    277293;------------------------------------------------------------ 
    278294;------------------------------------------------------------ 
    279 pro pltt,tab,giventype,givenmin,givenmax,datmin,datmax,BOITE = boite, CONTOUR=contour $ 
     295pro pltt,tab,giventype,givenmin,givenmax,datmin,datmax,BOXZOOM = boxzoom, CONTOUR=contour $ 
    280296         ,ENDPOINTS=endpoints,INTERVALLE=intervalle,INV=inv  $ 
    281297         ,CONTINTERVALLE=contintervalle,LABEL=label,CONTLABEL=contlabel $ 
    282          ,STYLE=style, CONTMAX=contmax, USETRI = usetri $ 
     298         ,STYLE=style, CONTMAX=contmax $ 
    283299         ,CONTMIN=contmin,NLEVEL=nlevel,CONTNLEVEL=contnlevel $ 
    284300         ,COL1D=col1d,STY1D=sty1d, MININ = minin, MAXIN = maxin $ 
    285301         ,OV1D=ov1d, FILTER = filter, TREND_TYPE = trend_type $ 
    286302         ,REPEAT_C = repeat_c, TYPEIN = typein, XT = XT, YT = YT, ZT = zt $ 
    287          , TT = tt, STRICTFILL = strictfill, OVERPLOT = overplot, EXCHANGE_XY = exchange_xy $ 
     303         , TT = tt, STRICTFILL = strictfill, OVERPLOT = overplot $ 
     304         , EXCHANGE_XY = exchange_xy $ 
    288305         , _extra = ex 
    289 @common 
     306;--------------------------------------------------------- 
     307; include common 
     308@cm_4mesh 
     309@cm_4data 
     310@cm_4cal 
     311  IF NOT keyword_set(key_forgetold) THEN BEGIN 
     312@updatenew 
     313@updatekwd 
     314  ENDIF 
     315;-------------------------------------------------------------- 
    290316;------------------------------------------------------------ 
    291317   tempsun = systime(1)         ; pour key_performance 
     
    299325; I1) lecture du champ 
    300326;-------------------------------------------------------------- 
    301    if keyword_set(boite) then oldboite = [lon1, lon2, lat1, lat2, prof1, prof2] 
     327   if (keyword_set(boxzoom) OR keyword_set(endpoints)) $ 
     328     AND n_elements(contour) ne 4 THEN BEGIN 
     329     savedbox = 1b 
     330     saveboxparam, 'boxparam4pltt.dat' 
     331   ENDIF 
    302332   if n_elements(giventype) NE 0 then type = giventype 
    303333   if n_elements(givenmin) NE 0 then min = givenmin 
     
    311341      endif 
    312342      type = typein 
    313    endif 
    314    checktypeminmax, 'pltt', TYPE = type, MIN = min, MAX = max, XT = XT, YT = YT, ZT = zt, TT = tt, ENDPOINTS=endpoints, BOITE = boite, _extra = ex 
     343    ENDIF 
     344; 
     345   checktypeminmax, 'pltt', TYPE = type, MIN = min, MAX = max $ 
     346     , XT = XT, YT = YT, ZT = zt, TT = tt, ENDPOINTS = endpoints, _extra = ex 
     347; 
    315348   if keyword_set(endpoints) then begin 
    316       section, tab, z2d, glam, gphi, ENDPOINTS = endpoints, TYPE = type, BOITE = boite, DIREC = direc 
     349      section, tab, z2d, glam, gphi, ENDPOINTS = endpoints, TYPE = type $ 
     350        , BOXZOOM = boxzoom, DIREC = direc 
    317351      nx = n_elements(glam)  
    318352      ny = nx 
    319353      if strupcase(vargrid) EQ 'W' then begin 
    320          z = gdepw[premierzw:dernierzw] 
     354         z = gdepw[firstzw:lastzw] 
    321355         nz = nzw 
    322356      ENDIF ELSE BEGIN 
    323          z = gdept[premierzt:dernierzt] 
     357         z = gdept[firstzt:lastzt] 
    324358         nz = nzt 
    325359      ENDELSE 
    326360   ENDIF ELSE BEGIN  
    327       z2d = checkfield(tab, 'pltt', TYPE = type, BOITE = boite, direc = direc, _extra = ex) 
     361      z2d = checkfield(tab, 'pltt', TYPE = type, BOXZOOM = boxzoom $ 
     362                       , direc = direc, _extra = ex) 
    328363      if z2d[0] EQ -1 then BEGIN  
    329          if keyword_set(boite) AND n_elements(oldboite) NE 0 then domdef, oldboite,GRILLE=vargrid 
    330          return 
     364        IF keyword_set(savedbox) THEN restoreboxparam, 'boxparam4pltt.dat' 
     365        return 
    331366      endif 
    332367      grille, mask, glam, gphi, gdep, nx, ny,nz 
     
    371406   ENDIF  
    372407 
    373  
    374408;--------------------------------------------------------------- 
    375409; selection du type de graphique.  
     
    377411   taille=size(z2d) 
    378412   case taille[0] of 
    379       2 : begin 
    380          niveau=1 
    381          typdes='2d' 
    382       end 
     413      2 : typdes='2d' 
    383414      1 : begin 
    384415         z1d=z2d 
     
    401432; on construit le mask pour cela le tableau doit etre masque (fait 
    402433; automatiquement a la valeur valmask si on passe ds moyenne ou grossemoyenne) 
    403    mask = fltarr(taille[1], taille[2]) 
    404434   nan = total(finite(z2d,/nan)) < 1 
    405435   if n_elements(valmask) EQ 0 then valmask = 1e20 
     
    407437      notanum = where(finite(z2d) EQ 0) 
    408438      z2d[notanum] = 0. 
    409       mask(where(z2d LT valmask/10.)) = 1 
     439      mask = z2d LT valmask/10. 
    410440      z2d[notanum] = !values.f_nan 
    411    ENDIF ELSE mask(where(z2d LT valmask/10)) = 1 
     441   ENDIF ELSE mask = z2d LT valmask/10. 
    412442;---------------------------------------------------------------------------- 
    413443;   determination du mi:min et du ma:max de z2d ainsi que de max: max et 
     
    416446; faudra-t-il faire un autoscale ??? 
    417447   autoscale = testvar(var = min) EQ testvar(var = max) AND NOT keyword_set(intervalle) 
    418    determineminmax, z2d, mask, mi, ma, MININ = min, MAXIN = max, nan = nan, INTERVALLE = intervalle 
     448   determineminmax, z2d, mask, mi, ma, MININ = min, MAXIN = max, nan = nan, INTERVALLE = intervalle, _extra = ex 
    419449   if z2d[0] EQ -1 THEN return 
    420450; on fait un autoscale si besoin 
     
    505535      if keyword_set(intervalle) AND NOT keyword_set(label) then label=1 
    506536      if keyword_set(label) eq 0 then cas=0 else cas=label 
    507       label,cas,min,max,ncontour,level_z2d,NLEVEL=nlevel,INTERVALLE=intervalle, strictfill = strictfill 
     537      label, cas, min, max, ncontour, level_z2d, colnumb, NLEVEL = nlevel $ 
     538             , INTERVALLE = intervalle, strictfill = strictfill 
    508539;-------------------------------------------------------------- 
    509540; choix de style 
     
    511542      if not keyword_set(style) then style=0 
    512543      style,style,level_z2d,linestyle,thick 
    513       if keyword_set(inv) then couleur=reverse(couleur) 
     544      if keyword_set(inv) then colnumb=reverse(colnumb) 
    514545;---------------------------------------------------------------------- 
    515546      nby = n_elements(yy) 
    516547      nbx = n_elements(xx) 
    517       xx = xx#replicate(1, nby) ; on passe les axes en tableaux 2d 
    518       yy = replicate(1, nbx)#yy 
    519 ; 
    520       if keyword_set(nan) then begin 
    521          notanumber = where(finite(z2d, /nan) EQ 1) 
    522          z2d[notanumber] = max 
    523          case type of 
    524             'xt':masknan = replicate(1, nx, jpt) 
    525             'yt':masknan = replicate(1, ny, jpt) 
    526             'zt':masknan = replicate(1, nz, jpt) 
    527          endcase 
    528          masknan[notanumber] = 0 
    529       ENDIF ELSE masknan = 1 
    530       z2d = remplit(z2d,nite=2+keyword_set(nan), mask = mask*masknan, /basique, _extra=ex) 
     548; 
     549      if keyword_set(nan) then BEGIN 
     550;         xx = xx#replicate(1, nby) ; on passe les axes en tableaux 2d 
     551;         yy = replicate(1, nbx)#yy 
     552         masknan = finite(z2d) 
     553         z2d[where(masknan EQ 0)] = max 
     554         mask = temporary(mask)*temporary(masknan) 
     555      ENDIF 
     556      z2d = remplit(z2d,nite=2+keyword_set(nan), mask = mask, /basique, _extra=ex) 
    531557      if NOT keyword_set(strictfill) then z2d = min > z2d <  max 
    532       if NOT keyword_set(usetri) then triangulation = -1 ELSE $ 
    533        triangulation = triangule(mask*masknan,/regulier,coinmonte=coinmontemask,coindescend=coindescendmask) 
    534 ; 
     558      if keyword_set(nan) then $ 
     559       triangulation = triangule(mask,/basic,coinmonte=coinmontemask $ 
     560                                 ,coindescend=coindescendmask) $ 
     561       ELSE triangulation = -1  
    535562;---------------------------------------------------------------------- 
    536       pltbase,z2d, xx, yy, mask,xx, yy, level_z2d,couleur, contour = contour,/noerase $ 
     563      pltbase,z2d, xx, yy, mask,xx, yy, level_z2d,colnumb, contour = contour,/noerase $ 
    537564       , c_linestyle=linestyle,c_labels=1-(indgen(n_elements(level_z2d)) MOD 2) $ 
    538565       , trichamp = triangulation, trimsk = triangulation, overplot = overplot $ 
    539        , c_thick=thick, performance = key_performance $ 
    540        , coinmontemask=-1, coindescendmask=-1, masknan = masknan, _extra = ex 
     566       , c_thick=thick, performance = key_performance, usetri = keyword_set(nan) $ 
     567       , coinmontemask=coinmontemask, coindescendmask=coindescendmask, _extra = ex 
    541568;------------------------------------------------------------ 
    542569      if n_elements(contour) eq 4 then BEGIN ; c''est la 2eme fois que je passe ds pltt 
     
    548575         pourlegende = [1, 1, 1, 1] 
    549576         oldattributs = saveatt() 
    550          oldcouleur = couleur 
     577         oldcolnumb = colnumb 
    551578         pltt,contour,type, contmin,contmax,CONTOUR=pourlegende, /noerase, USETRI = usetri $ 
    552579          ,INTERVALLE=contintervalle,LABEL=contlabel,STYLE=style, ENDPOINTS = endpoints $ 
    553           ,NLEVEL=contnlevel,YSURX=ysurx, BOITE = boite, STRICTFILL = strictfill, _extra = ex 
    554          couleur = oldcouleur 
     580           , NLEVEL = contnlevel, BOXZOOM = boxzoom, STRICTFILL = strictfill, _extra = ex 
     581         colnumb = oldcolnumb 
    555582         restoreatt, oldattributs 
    556583      endif 
     
    559586      if keyword_set(overplot) then GOTO, fini 
    560587;------------------------------------------------------------ 
    561 ; Trace de la ligne de changement de date 
    562 ;------------------------------------------------------------ 
    563       if (type eq 'xt') then $  
    564        plot, [180,180],[tempsmin,tempsmax],/noerase,color=c_cote 
     588; Trace de la ligne de changement de date or the equator 
     589;------------------------------------------------------------ 
     590      IF key_onearth THEN BEGIN 
     591        CASE type OF 
     592          'xt':oplot, [180, 180] - 360*(!x.range[1] LT 180), !y.range  
     593          'yt':oplot, !x.range, [0, 0] 
     594          ELSE: 
     595        ENDCASE 
     596      ENDIF 
    565597;------------------------------------------------------------ 
    566598; legendes + affichage de celles-ci 
     
    569601       , ENDPOINTS = endpoints, _extra = ex 
    570602; 
    571       plot,[0],[0],/noerase,color=c_cote, xstyle = 1+4*(keyword_set(endpoints) AND type EQ 'xt' AND lat1 NE lat2) $ 
    572        , ystyle = 1+4*(keyword_set(endpoints) AND type EQ 'yt'), _extra = ex 
     603; we want to draw the time axis with tick length = 1. if we simply 
     604; use [xy]style=1 then each axis (up and down or left and right) have 
     605; majorticks with a length of 1 (-> not very nice when xgridstyle=2), 
     606; same if xticklen=0.5 (not very nice in the middle). => so we draw 
     607; the top (right) axis by hand using axis. 
     608; 
     609      if n_elements(ex) NE 0 then BEGIN  
     610; pour avoir un cadre de la couleur noire 
     611        if (where(tag_names(ex) EQ 'COLOR'))[0] NE -1 then ex.COLOR = 0 
     612      ENDIF 
     613; 
     614      plot, [0], [0], /nodata, /noerase, _extra = ex $ 
     615        , xstyle = 1+4*(keyword_set(endpoints) AND type EQ 'xt' AND lat1 NE lat2)+8*(type EQ 'yt' OR type EQ 'zt') $ 
     616        , ystyle = 1+4*(keyword_set(endpoints) AND type EQ 'yt')+8*(type EQ 'xt') 
     617; call axis for the missing axis. 
     618      IF type EQ 'xt' AND NOT keyword_set(endpoints) THEN BEGIN 
     619        if n_elements(ex) NE 0 then $  
     620          if (where(tag_names(ex) EQ 'YTICKNAME'))[0] NE -1 then $ 
     621          ex.YTICKNAME = replicate(' ', n_elements(ex.YTICKNAME)) 
     622        axis, yaxis = 1, ystyle = 1, yticklen = 0 $ 
     623          , ytickname = replicate(' ', !y.ticks+1), _extra = ex 
     624      ENDIF 
     625      IF (type EQ 'yt' OR type EQ 'zt') AND NOT keyword_set(endpoints) THEN BEGIN 
     626        if n_elements(ex) NE 0 then $  
     627          if (where(tag_names(ex) EQ 'XTICKNAME'))[0] NE -1 then $ 
     628          ex.XTICKNAME = replicate(' ', n_elements(ex.XTICKNAME)) 
     629       axis, xaxis = 1, xstyle = 1, xticklen = 0 $ 
     630        , xtickname = replicate(' ', !x.ticks+1), _extra = ex 
     631      ENDIF 
    573632; ajout d'un axe ds le cas ou l'on utilise endpoints 
    574633      if keyword_set(endpoints) then addaxe, endpoints, type, posfenetre, _EXTRA = ex 
     
    576635; barre de couleur 
    577636;------------------------------------------------------------ 
    578       couleur = couleur[0:ncontour-1-keyword_set(strictfill)] 
    579       barrecouleur, position=posbar,divisions=(ncontour-keyword_set(strictfill))/2,min=min $ 
    580        , max=max,discret=couleur,_extra = ex 
     637      colnumb = colnumb[0:ncontour-1-keyword_set(strictfill)] 
     638      barrecouleur, colnumb, min,  max, (ncontour-keyword_set(strictfill))/2 $ 
     639                    , position = posbar, _extra = ex 
    581640;------------------------------------------------------------ 
    582641   endif 
     
    592651            bar_plot, yy, background = (!d.n_colors-1) < 255,  $ 
    593652             baselines = replicate(!y.range[0], n_elements(yy)), barnames = ['', ''], $ 
    594              colors    = replicate(col1d      , n_elements(yy)), /outline 
    595             plot, [0], [0],/noerase,color=c_cote, _extra = ex 
     653             colors    = replicate(col1d, n_elements(yy)), /outline 
     654            if n_elements(ex) NE 0 then BEGIN  
     655; pour avoir un cadre de la couleur noire 
     656              if (where(tag_names(ex) EQ 'COLOR'))[0] NE -1 then ex.COLOR = 0 
     657            ENDIF 
     658            plot, [0], [0], /nodata, /noerase, _extra = ex 
    596659            GOTO, fini 
    597660         ENDIF  
     
    609672            yy = rien 
    610673         endif 
    611          plot,xx,yy,color=col1d,linestyle=sty1d,thick=2, title = '', subtitle = '', _extra = ex 
     674         plot, xx, yy, color = col1d, linestyle = sty1d, thick = 2 $ 
     675           , title = '', subtitle = '', _extra = ex 
     676; draw 0 line 
     677         if keyword_set(exchange_xy) then $ 
     678           oplot, [0, 0], !y.range ELSE oplot, !x.range, [0, 0] 
     679; we want to draw the axis with the time axis length = 1. if we simply 
     680; use xstyle=1 then each axis (up and down) have majorticks with a 
     681; length of 1 (-> not very nice when xgridstyle=2), same if 
     682; xticklen=0.5 (not very nice in the middle).  
     683; => so we draw the top axis by hand using axis. 
    612684         if n_elements(ex) NE 0 then BEGIN  
    613 ; pour avoir un cadre de la couleur c_cote 
    614             if (where(tag_names(ex) EQ 'COLOR'))[0] NE -1 then ex.COLOR = c_cote 
     685; pour avoir un cadre de la couleur noire 
     686            if (where(tag_names(ex) EQ 'COLOR'))[0] NE -1 then ex.COLOR = 0 
    615687         ENDIF 
    616          if keyword_set(exchange_xy) then $ 
    617           plot, [0, 0],!y.range ,/noerase,color=c_cote, xstyle = 1, ystyle = 1, _extra = ex $ 
    618          ELSE plot, !x.range, [0, 0],/noerase,color=c_cote, xstyle = 1, ystyle = 1, _extra = ex 
    619       ENDIF ELSE oplot,xx,yy,color=col1d,linestyle=sty1d,thick=2, _extra = ex 
     688         plot, [0], [0], /nodata, /noerase $ 
     689           , xstyle = 1+8*(1-keyword_set(exchange_xy)) $ 
     690           , ystyle = 1+8*keyword_set(exchange_xy), _extra = ex 
     691; call axis for the missing axis. 
     692         if n_elements(ex) NE 0 then BEGIN  
     693; force tickname to blank array 
     694            if (where(tag_names(ex) EQ 'YTICKNAME'))[0] NE -1 AND keyword_set(exchange_xy) then ex.YTICKNAME = replicate(' ', n_elements(ex.YTICKNAME)) 
     695            if (where(tag_names(ex) EQ 'XTICKNAME'))[0] NE -1 AND NOT keyword_set(exchange_xy) then ex.XTICKNAME = replicate(' ', n_elements(ex.XTICKNAME)) 
     696         ENDIF 
     697         if keyword_set(exchange_xy) then  axis, yaxis = 1, ystyle = 1 $ 
     698           , yticklen = 0, ytickname = replicate(' ', !y.ticks+1), _extra = ex $ 
     699         ELSE axis, xaxis = 1, xstyle = 1, xticklen = 0 $ 
     700           , xtickname = replicate(' ', !x.ticks+1), _extra = ex 
     701       ENDIF ELSE oplot, xx, yy, color = col1d, linestyle = sty1d, thick = 2, _extra = ex 
    620702   endif 
    621703fini: 
     
    633715; on fait un faut plot pour que ces valeurs soient prises en 
    634716; consideration 
    635    plot,[0], [0], /noerase,xstyle=5, ystyle = 5, title = '', subtitle = '', ytitle = '', xtitle = '' 
     717   plot, [0], [0], /nodata, /noerase, xstyle = 5, ystyle = 5 $ 
     718     , title = '', subtitle = '', ytitle = '', xtitle = '' 
    636719;------------------------------------------------------------ 
    637720;------------------------------------------------------------ 
     
    640723;------------------------------------------------------------ 
    641724   terminedessin, _extra = ex 
    642    if keyword_set(oldboite) then domdef, oldboite,GRILLE=[vargrid, 'T'] 
     725   if keyword_set(savedbox) THEN restoreboxparam, 'boxparam4pltt.dat' 
    643726;------------------------------------------------------------ 
    644727   if n_elements(key_performance) NE 0 then $ 
Note: See TracChangeset for help on using the changeset viewer.