Changeset 231 for trunk/SRC/ToBeReviewed/PLOTS/DIVERS/placecolor.pro
- Timestamp:
- 03/19/07 18:15:51 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/ToBeReviewed/PLOTS/DIVERS/placecolor.pro
r163 r231 1 ;------------------------------------------------------------2 ;------------------------------------------------------------3 ;------------------------------------------------------------4 1 ;+ 5 2 ; … … 14 11 ; 15 12 ; @param POS 16 ; Vector composed by 4 elements giving coordinates of the left bottom 13 ; Vector composed by 4 elements giving coordinates of the left bottom 17 14 ; corner and of the right up one -in cm- in which we want to do the color bar 18 15 ; 19 ; @keyword _ extra20 ; used to pass yourkeywords16 ; @keyword _EXTRA 17 ; Used to pass keywords 21 18 ; 22 19 ; @uses … … 34 31 ; 35 32 ;- 36 ;------------------------------------------------------------ 37 ;------------------------------------------------------------ 38 ;------------------------------------------------------------ 33 ; 39 34 pro placecolor, pos, _extra = ex 40 ;------------------------------------------------------------41 ; include commons42 35 ; 43 36 compile_opt idl2, strictarrsubs … … 47 40 @updatenew 48 41 ENDIF 49 ;---------------------50 42 ; 51 43 xsave = !x … … 57 49 mipgsz = min(page_size, max = mapgsz) 58 50 if key_portrait eq 1 then begin 59 pos[0]=pos[0]/mipgsz 60 pos[1]=pos[1]/mapgsz 61 pos[2]=pos[2]/mipgsz 62 pos[3]=pos[3]/mapgsz 51 pos[0]=pos[0]/mipgsz 52 pos[1]=pos[1]/mapgsz 53 pos[2]=pos[2]/mipgsz 54 pos[3]=pos[3]/mapgsz 63 55 endif else begin 64 pos[0]=pos[0]/mapgsz 65 pos[1]=pos[1]/mipgsz 66 pos[2]=pos[2]/mapgsz 67 pos[3]=pos[3]/mipgsz 56 pos[0]=pos[0]/mapgsz 57 pos[1]=pos[1]/mipgsz 58 pos[2]=pos[2]/mapgsz 59 pos[3]=pos[3]/mipgsz 68 60 ENDELSE 69 61 ; … … 75 67 ; 76 68 colnumb = colorbarparam.colnumb 77 clbinf = colorbarparam.clbinf 69 clbinf = colorbarparam.clbinf 78 70 clbsup = colorbarparam.clbsup 79 71 clbdiv = colorbarparam.clbdiv … … 82 74 file = myuniquetmpdir + '4colorbar.dat' 83 75 IF file_test(file) THEN BEGIN 84 restore, file 85 if size(ex, /type) EQ 8 then BEGIN 76 restore, file 77 if size(ex, /type) EQ 8 then BEGIN 86 78 if (where(tag_names(ex) EQ 'MIN'))[0] NE -1 then clbinf = ex.MIN 87 79 if (where(tag_names(ex) EQ 'MAX'))[0] NE -1 then clbsup = ex.MAX … … 99 91 !y = ysave 100 92 !p = psave 101 ; ------------------------------------------------------------93 ; 102 94 return 103 95 end
Note: See TracChangeset
for help on using the changeset viewer.