Changeset 369 for trunk/SRC/ToBeReviewed
- Timestamp:
- 08/06/08 17:52:18 (16 years ago)
- Location:
- trunk/SRC/ToBeReviewed/PLOTS
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/ToBeReviewed/PLOTS/LABEL/label.pro
r327 r369 1 ;------------------------------------------------------------2 ;------------------------------------------------------------3 ;------------------------------------------------------------4 1 ;+ 5 2 ; 6 3 ; @file_comments 7 ; Allows to choose the type of the label we want to use at the time of a contour. 4 ; Allows to choose the type of the label we want to use at the time of a 5 ; contour. 8 6 ; 9 7 ; @categories … … 12 10 ; @param CAS {in}{required} 13 11 ; Number of the type of the label we want to trace 14 ; 12 ; 15 13 ; @param MIN {in}{required} 16 14 ; Smallest value for the drawing of the contour. … … 37 35 ; 38 36 ; @uses 39 ; common.pro37 ; <pro>common</pro> 40 38 ; 41 39 ; @history 42 40 ; Sebastien Masson (smasson\@lodyc.jussieu.fr) 43 ; 41 ; 7/5/98 44 42 ; 45 43 ; @version -
trunk/SRC/ToBeReviewed/PLOTS/LABEL/label_date.pro
r327 r369 1 ;2 ; Copyright (c) 1993-1998, Research Systems, Inc. All rights reserved.3 ; Unauthorized reproduction prohibited.4 5 1 ;+ 6 2 ; … … 11 7 ; Plotting 12 8 ; 13 ; @param AXIS {in} {required}9 ; @param AXIS {in} 14 10 ; 15 ; @param INDEX {in} {required}11 ; @param INDEX {in} 16 12 ; 17 ; @param X {in} {required}13 ; @param X {in} 18 14 ; 19 15 ; @keyword DATE_FORMAT 20 16 ; a format string which may contain the following: 21 ; %M for month (3 character abbr)22 ; %N for month (2 digit abbr)17 ; %M for month (3 characters abbr) 18 ; %N for month (2 digits abbr) 23 19 ; %D for day of month, 24 ; %Y for 4 digit year.20 ; %Y for 4 digits year. 25 21 ; %Z for last two digits of year. 26 22 ; For time: … … 49 45 ; 50 46 ; @uses 51 ; LABEL_DATE_COM.52 47 ; 53 48 ; @restrictions … … 55 50 ; 56 51 ; @examples 52 ; 57 53 ; For example, to plot from Jan 1, 1993, to July 12, 1994: 58 ; Start_date = julday(1, 1, 1993) 59 ; End_date = julday(7, 12, 1994) 60 ; Dummy = LABEL_DATE(DATE_FORMAT='%N/%D') ;Simple mm/dd 61 ; x = findgen(end_date+1 - start_date) + start_date ;Time axis 62 ; PLOT, x, sqrt(x), XTICKFORMAT = 'LABEL_DATE', XSTYLE=1 63 ; (Plot with X axis style set to exact.) 64 ; 54 ; 55 ; IDL> Start_date = julday(1, 1, 1993) 56 ; IDL> End_date = julday(7, 12, 1994) 57 ; IDL> ; Simple mm/dd 58 ; IDL> Dummy = LABEL_DATE(DATE_FORMAT='%N/%D') 59 ; IDL> ;Time axis 60 ; IDL> x = findgen(end_date+1 - start_date) + start_date 61 ; IDL> ; Plot with X axis style set to exact 62 ; IDL> PLOT, x, sqrt(x), XTICKFORMAT = 'LABEL_DATE', XSTYLE=1 63 ; 65 64 ; Example with times: 66 ; For example, to plot from 3PM, Jan 1, 1993, to 5AM, Jan 3, 67 ; 1993: 68 ; Start_date = Julday(1,1,1993) ;Also starting offset 69 ; Start_time = (3+12)/24. ;Starting_time less offset 70 ; End_time = (Julday(1,3,1993) - Start_date) + 5./24. ;Ending 71 ; ;date/time - offset, note that the order of operations is 72 ; ; important to avoid loss of precision. 73 ; Dummy = LABEL_DATE(DATE_FORMAT='%D %M!C%H:%I', $ 74 ; offset=Start_date) ;MMM NN <new line> HH:MM format 75 ; x = findgen(20) * (End_time - Start_time) / 19 + start_time ;Time axis 76 ; PLOT, x, sqrt(x), XTICKFORMAT = 'LABEL_DATE', XSTYLE=1 65 ; 66 ; For example, to plot from 3PM, Jan 1, 1993, to 5AM, Jan 3, 1993: 67 ; 68 ; IDL> ; Also starting offset 69 ; IDL> Start_date = Julday(1,1,1993) 70 ; IDL> ; Starting_time less offset 71 ; IDL> Start_time = (3+12)/24. 72 ; IDL> End_time = (Julday(1,3,1993) - Start_date) + 5./24. 73 ; IDL> ; Ending date/time - offset, note that the order of operations is 74 ; IDL> ; important to avoid loss of precision 75 ; IDL> ; MMM NN <new line> HH:MM format 76 ; IDL> Dummy = LABEL_DATE(DATE_FORMAT='%D %M!C%H:%I', offset=Start_date) 77 ; IDL> ;Time axis 78 ; IDL> x = findgen(20) * (End_time - Start_time) / 19 + start_time 79 ; IDL> PLOT, x, sqrt(x), XTICKFORMAT = 'LABEL_DATE', XSTYLE=1 77 80 ; 78 81 ; @history 79 ; DMS, RSI. April, 1993.Written.80 ; DMS, RSI. March, 1997.Added Time format.82 ; DMS, RSI. April, 1993. Written. 83 ; DMS, RSI. March, 1997. Added Time format. 81 84 ; 82 85 ; Copyright (c) 1993-1998, Research Systems, Inc. All rights reserved. 83 ; 86 ; Unauthorized reproduction prohibited. 84 87 ; 85 88 ; @version … … 119 122 i = i + 1 120 123 c = strmid(fmt, i, 1) ;The function 121 case c of 124 case c of ;format character? 122 125 'M' : out = out + month_chr[month-1] 123 126 'N' : out = out + string(format='(i2.2)', month) -
trunk/SRC/ToBeReviewed/PLOTS/LABEL/label_gmt.pro
r325 r369 7 7 ; 8 8 ; @param MIN {in}{required} 9 ; A re el number specifying above what value we want to trace a contour9 ; A real number specifying above what value we want to trace a contour 10 10 ; 11 11 ; @param MAX {in}{required} 12 ; A re el number specifying below what value we want to trace a contour12 ; A real number specifying below what value we want to trace a contour 13 13 ; 14 14 ; @param INTERVALLE … … 56 56 IF finite(min) EQ 0 THEN read, ' Grey shade needs a min,max :', min, max 57 57 ncontour = fix((max-min)/intervalle) 58 level_z2d = min + intervalle*findgen( Ncontour)59 max=level_z2d[ Ncontour-1]+intervalle58 level_z2d = min + intervalle*findgen(ncontour) 59 max=level_z2d[ncontour-1]+intervalle 60 60 61 61 ras = report([' Number of contour intervals, plotting min & max ' + $ … … 93 93 94 94 mid_index = max(where(level_z2d LE fldatt.mid)) 95 coul = findgen( Ncontour)+49-mid_index +295 coul = findgen(ncontour)+49-mid_index +2 96 96 97 97 ENDELSE -
trunk/SRC/ToBeReviewed/PLOTS/LABEL/lataxe.pro
r325 r369 1 ;------------------------------------------------------------2 ;------------------------------------------------------------3 ;------------------------------------------------------------4 1 ;+ 5 2 ; 6 3 ; @file_comments 7 ; function called by [XYZ]TICKFORMAT (see the help to see how to use it) to label axes in latitude. 4 ; function called by [XYZ]TICKFORMAT (see the help to see how to use it) to 5 ; label axes in latitude. 8 6 ; 9 7 ; @categories … … 15 13 ; @param INDEX 16 14 ; It is the tick mark index which starts at 0. 17 ; 15 ; 18 16 ; @param VALUE 19 17 ; It is the default tick mark value (a floating-point number). … … 53 51 return, nom 54 52 end 55 -
trunk/SRC/ToBeReviewed/PLOTS/LABEL/lonaxe.pro
r325 r369 1 ;------------------------------------------------------------2 ;------------------------------------------------------------3 ;------------------------------------------------------------4 1 ;+ 5 2 ; 6 3 ; @file_comments 7 ; function called by [XYZ]TICKFORMAT (see the help to see how to use it) to label axes in longitude. 4 ; function called by [XYZ]TICKFORMAT (see the help to see how to use it) to 5 ; label axes in longitude. 8 6 ; 9 7 ; @categories … … 15 13 ; @param INDEX 16 14 ; It is the tick mark index which starts at 0. 17 ; 15 ; 18 16 ; @param VALUE 19 17 ; It is the default tick mark value (a floating-point number). … … 52 50 return, nom 53 51 end 54 -
trunk/SRC/ToBeReviewed/PLOTS/axe.pro
r327 r369 29 29 ; 30 30 ; @keyword DIGITSYEAR 31 ; =2 to use %Z format (2 digits) to code years instead of %Y format .31 ; =2 to use %Z format (2 digits) to code years instead of %Y format (4 digits). 32 32 ; See <pro>label_date</pro> for more information on %Z and %Y. 33 33 ; … … 36 36 ; 37 37 ; @uses 38 ; common.pro38 ; <pro>common</pro> 39 39 ; 40 40 ; @restrictions -
trunk/SRC/ToBeReviewed/PLOTS/legende.pro
r344 r369 28 28 ; 29 29 ; @uses 30 ; common.pro30 ; <pro>common</pro> 31 31 ; 32 32 ; @restrictions -
trunk/SRC/ToBeReviewed/PLOTS/reinitplt.pro
r325 r369 28 28 ; 29 29 ; @uses 30 ; common.pro30 ; <pro>common</pro> 31 31 ; 32 32 ; @restrictions
Note: See TracChangeset
for help on using the changeset viewer.