Changeset 506 for trunk/SRC/ToBeReviewed


Ignore:
Timestamp:
01/05/17 00:40:09 (8 years ago)
Author:
smasson
Message:

add pixmap keyword in tvplus

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SRC/ToBeReviewed/PLOTS/DESSINE/tvplus.pro

    r493 r506  
    9191          , BOTTOM=bottom, C_MASK=c_mask, C_NAN=c_nan, WINDOW=window $ 
    9292          , MIN=min, MAX=max, MASK=mask, OFFSET=offset $ 
    93           , NOUSEINFOS=NOUSEINFOS $ 
     93          , NOUSEINFOS=NOUSEINFOS, PIXMAP = pixmap $ 
    9494          , NCOLORS=ncolors, NOINTERP=nointerp, _EXTRA=ex 
    9595; 
     
    138138    cellsize = 1 
    139139    scrolling = 1 
    140   endif 
     140  ENDIF 
    141141;------------------------------------------------------------ 
    142142; Change the value of the masked value for the min of the non-masked values 
     
    199199  if xyaspect GE 1 THEN marginpix = 1.*[25, 25, 75, 25] ELSE marginpix = 1.*[25, 100, 25, 25] 
    200200; 
    201   if n_elements(scrolling) EQ 0 then BEGIN ; open the regular window 
     201  if n_elements(scrolling) EQ 0 OR keyword_set(pixmap) then BEGIN ; open the regular window 
    202202    if NOT keyword_set(window) then window = 0 
    203203    window, window, xsize = nx+marginpix[0]+marginpix[1] $ 
    204             , ysize = ny+marginpix[2]+marginpix[3] 
     204            , ysize = ny+marginpix[2]+marginpix[3], PIXMAP = pixmap 
    205205    tv, arr, marginpix[0], marginpix[2], _EXTRA = ex 
    206206; 
     
    234234    ENDIF 
    235235;      !p.position = poscadre 
     236    IF keyword_set(pixmap) THEN return 
    236237  ENDIF ELSE BEGIN 
    237238;------------------------------------------------------------ 
Note: See TracChangeset for help on using the changeset viewer.