Changeset 142 for trunk/SRC/ToBeReviewed/PLOTS/LABEL/lonaxe.pro
- Timestamp:
- 07/21/06 14:47:49 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/ToBeReviewed/PLOTS/LABEL/lonaxe.pro
r134 r142 3 3 ;------------------------------------------------------------ 4 4 ;+ 5 ; NAME:LONAXE6 5 ; 7 ; PURPOSE:fonction appelee par [XYZ]TICKFORMAT (cf l'help pour voir8 ; comment l'utiliser) pour labeller les axes en longitude.6 ; @file_comments 7 ; function called by [XYZ]TICKFORMAT (see the help to see how to use it) to label axes in longitude. 9 8 ; 10 ; CATEGORY:graphe 9 ; @categories 10 ; graphic 11 ; 12 ; @param AXIS 13 ; It is the axis number: 0 for X axis, 1 for Y axis, 2 for Z axis. 11 14 ; 12 ; CALLING SEQUENCE:[XYZ]TICKFORMAT='lonaxe' 15 ; @param INDEX 16 ; It is the tick mark index which starts at 0. 17 ; 18 ; @param VALUE 19 ; It is the default tick mark value (a floating-point number). 13 20 ; 14 ; INPUTS:fournis (et imposes) automatiquement par IDL: axis, index, value: 15 ; Axis is the axis number: 0 for X axis, 1 for Y axis, 2 for Z axis. 16 ; Index is the tick mark index which starts at 0. 17 ; Value is the default tick mark value (a floating-point number). 18 ; KEYWORD PARAMETERS: 21 ; @returns 22 ; A string, used automatically to label 19 23 ; 20 ; OUTPUTS:un string, utilise automatiquement pour labeller 24 ; @history 25 ; Sebastien Masson (smasson@lodyc.jussieu.fr) 26 ; ??? 27 ; 14/10/1999 format of labels 21 28 ; 22 ; COMMON BLOCKS: 29 ; @version 30 ; $Id$ 23 31 ; 24 ; SIDE EFFECTS:25 ;26 ; RESTRICTIONS:27 ;28 ; EXAMPLE:29 ;30 ; MODIFICATION HISTORY: Sebastien Masson (smasson@lodyc.jussieu.fr)31 ; ???32 ; 14/10/1999 format des labels33 32 ;- 34 33 ;------------------------------------------------------------ … … 37 36 FUNCTION lonaxe, axis, index, value 38 37 ;------------------------------------------------------------ 39 ; on ramenne value ds le segment [0,360[38 ; We put back value in the segment [0,360[ 40 39 ; 41 40 compile_opt idl2, strictarrsubs … … 43 42 lon=value mod 360 44 43 if lon lt 0 then lon=lon+360 45 ; format deslabels:44 ; format of labels: 46 45 case 1 of 47 46 lon EQ round(lon):fmt = 'i4' … … 49 48 ELSE:fmt = 'f7.2' 50 49 endcase 51 ; on ecrit le label50 ; we write the label 52 51 if lon lt 180 then nom=string(lon, format='('+fmt+',''E'')') 53 52 if lon gt 180 then nom=string(360-lon, format='('+fmt+',''W'')')
Note: See TracChangeset
for help on using the changeset viewer.