Ignore:
Timestamp:
03/15/07 11:22:28 (17 years ago)
Author:
pinsard
Message:

improvements/corrections of some *.pro headers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SRC/Utilities/text_box.pro

    r163 r224  
    11;+ 
    22; 
    3 ; @file_comments  
     3; @file_comments 
    44; This procedure writes a short text message within a box-shaped 
    55; area in a graphics window.  The message may be split at word 
    66; boundaries into several lines, and the character size and 
    77; orientation may be adjusted for the text to fit within the box. 
    8 ;    
    9 ; @param TEXT {in}{required}  
     8; 
     9; @param TEXT {in}{required} 
    1010; ASCII text string containing the message. 
    1111; 
    12 ; @keyword POS   
     12; @keyword POS 
    1313; 4 element vector specifying the box position and size 
    1414; pos[0],pos[1] specify the lower left corner coordinate 
     
    1919; color of box and legend titles 
    2020; 
    21 ; @keyword BG_COLOR  
    22 ; background color. Setting BG_COLOR erases the area  
     21; @keyword BG_COLOR 
     22; background color. Setting BG_COLOR erases the area 
    2323;               covered by the text box (filling it with color BG_COLOR) 
    2424;               prior to writing the text.  If both BG_COLOR and !p.color 
    2525;               are zero then the background color is reset to 255 to 
    2626;               gaurantee a readability. 
    27 ;                
    28 ; @keyword RIGHT  
     27; 
     28; @keyword RIGHT 
    2929; if set, right justify text 
    3030; 
    31 ; @keyword CENTER  
     31; @keyword CENTER 
    3232; if set, center the text 
    3333; 
     
    3535; vertical spacing of lines in units of character height 
    3636; 
    37 ; @keyword _EXTRA  
     37; @keyword _EXTRA 
    3838; used to pass your keyword 
    3939; 
    40 ; @keyword BOX  
     40; @keyword BOX 
    4141; activate to show the box on graphics window. 
    4242; 
    43 ; @history  Paul Ricchiazzi                            7Jul93 
     43; @history 
     44; Paul Ricchiazzi                            7Jul93 
    4445;           Institute for Computational Earth System Science 
    4546;           University of California, Santa Barbara 
    4647; 
    47 ; @version $Id$ 
     48; @version 
     49; $Id$ 
    4850; 
    4951;- 
     
    8082  print,strcompress(posstring,/remove_all) 
    8183 
    82     
     84 
    8385endif else begin 
    84    
     86 
    8587  xx1 = nnx[0]+pos[0]*(nnx[1]-nnx[0]) 
    8688  xx2 = nnx[0]+pos[2]*(nnx[1]-nnx[0]) 
     
    103105  blanklen=lenstr(' ')*!d.x_vsize 
    104106  maxcharsize=(xx2-xx1)/(4*blanklen+max(wordlen)) 
    105   charsize=1   
     107  charsize=1 
    106108  lpnt=intarr(nwords) 
    107109  nomore=0 
     
    123125        sum=wlen[i]+blen 
    124126      endif 
    125       lpnt[i]=ilines         
    126        
     127      lpnt[i]=ilines 
     128 
    127129;      print,f='(f8.2,4i8,3f8.2)',charsize,i,ilines,n_lines,lpnt[i],$ 
    128130;                 wlen[i]+blen,sum+3*blen,xx2-xx1 
    129     endfor         
     131    endfor 
    130132    case 1 of 
    131133      ilines+1 lt n_lines: if charsize*1.1 gt maxcharsize then $ 
     
    135137      ilines+1 gt n_lines: charsize=charsize*.9 
    136138    endcase 
    137 endrep until nomore  
     139endrep until nomore 
    138140 
    139141lines=strarr(n_lines) 
     
    150152; 
    151153  align=.5*(1+justify) 
    152    
     154 
    153155  case justify of 
    154156    -1:xx = xx1+.5*((xx2-xx1)-maxlen) 
Note: See TracChangeset for help on using the changeset viewer.