Changeset 256 for trunk


Ignore:
Timestamp:
07/03/07 17:10:27 (17 years ago)
Author:
smasson
Message:

better control of yx aspect in pltv

Location:
trunk/SRC/ToBeReviewed/PLOTS
Files:
2 edited

Legend:

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

    r254 r256  
    154154;-------------------------------------------------------------- 
    155155  if NOT keyword_set(overplot) then reinitplt, /z, /invert 
    156   placedessin, 'plt', posplot, posbar, _extra = ex 
     156  placedessin, 'pltv', posplot, posbar, dtasize, _extra = ex 
    157157;-------------------------------------------------------------- 
    158158; 3) Drawing 
  • trunk/SRC/ToBeReviewed/PLOTS/DIVERS/placedessin.pro

    r237 r256  
    1010; It specify what procedure is called by <pro>PLACEDESSIN</pro> :  
    1111; 'plt', 'pltz' or 'pltt' 
     12; 
     13; @param POSFENETRE {out}{type=vector} 
     14; It is a vector composed by 4 elements containing the position of the frame 
     15; containing captions and the graph in normalized coordinates. 
     16; Comment: To position the drawing; we have to do !p.position=posfenetre 
     17; after the call of the caliber 
     18; 
     19; @param POSBAR {out}{type=vector} 
     20; Like POSFENETRE but for the color bar. 
     21; Same comment to position the color bar, !p.position=posbar 
     22; 
     23; @param dtasize {in}{optional}{type=2 elements vector} 
     24; used by pltv to specify the size of the array that wil be plotted 
     25; and therefore the default yxaspect to be used. 
    1226; 
    1327; @keyword LANDSCAPE 
     
    102116; with filling in color 
    103117; 
    104 ; @param POSFENETRE {out}{type=vector} 
    105 ; It is a vector composed by 4 elements containing the position of the frame 
    106 ; containing captions and the graph in normalized coordinates. 
    107 ; Comment: To position the drawing; we have to do !p.position=posfenetre 
    108 ; after the call of the caliber 
    109 ; 
    110 ; @param POSBAR {out}{type=vector} 
    111 ; Like POSFENETRE but for the color bar. 
    112 ; Same comment to position the color bar, !p.position=posbar 
    113 ; 
    114118; @uses 
    115119; common.pro 
     
    124128;- 
    125129; 
    126 PRO placedessin, typedessin, posfenetre, posbar, BARMARGES = barmarges $ 
     130PRO placedessin, typedessin, posfenetre, posbar, dtasize, BARMARGES = barmarges $ 
    127131                 , NOCOLORBAR = nocolorbar, NOFILL = nofill, COLOR_c = color_c $ 
    128132                 , CONTOUR = contour $ 
     
    156160    case typedessin of 
    157161      'plt':marge = 1.*[6, 2, 4, 3] 
     162      'pltv':marge = 1.*[6, 2, 4, 3] 
    158163      'pltt':marge = 1.*[6+4*(type EQ 'xt'), 2, 4, 4] 
    159164      'pltz':marge = 1.*[6, 2, 4, 3] 
     
    195200    'pltt':yaspect = 1. 
    196201    'pltz':yaspect = .5 
     202    'pltv':yaspect = float(dtasize[1])/float(dtasize[0]) 
    197203    ELSE:yaspect = 1. 
    198   endcase 
     204  ENDCASE 
    199205;------------------------------------------------------------- 
    200206; 2) calculation of !p.position 
Note: See TracChangeset for help on using the changeset viewer.