source: trunk/SRC/ToBeReviewed/PLOTS/DIVERS/barrecouleur.pro @ 231

Last change on this file since 231 was 231, checked in by pinsard, 17 years ago

improvements/corrections of some *.pro headers

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.5 KB
Line 
1;+
2;
3; @file_comments
4; Overlayer of colorbar
5;
6; @categories
7; Utilities
8;
9; @param COLNUMB
10;
11;
12; @param CLBINF
13;
14;
15; @param CLBSUP
16;
17;
18; @param CLBDIV
19;
20;
21; @keyword NOCOLORBAR
22;
23;
24; @keyword CB_TITLE
25;
26;
27; @keyword NOFILL
28;
29;
30; @keyword COLOR_c
31;
32;
33; @keyword MIN
34; Scalar used to specify the min value to be drawn.
35;
36; @keyword MAX
37; Scalar used to specify the max value to be drawn.
38;
39; @keyword DIVISIONS
40;
41;
42; @keyword CB_SUBTITLE
43;
44;
45; @keyword POST
46;
47;
48; @keyword _EXTRA
49; Used to pass keywords
50;
51; @restrictions
52; pass all argument we want thanks to _extra
53;
54; @history
55; Sebastien Masson (smasson\@lodyc.jussieu.fr)
56;                       23/12/98
57;
58; @version
59; $Id$
60;
61; @todo
62; seb: mettre les keyword et les param
63;-
64;
65PRO barrecouleur, colnumb, clbinf, clbsup, clbdiv $
66                  , NOCOLORBAR = nocolorbar, CB_TITLE = cb_title $
67                  , NOFILL = nofill, COLOR_c = color_c $
68                  , MIN = min, MAX = max, divisions = divisions $
69                  , CB_SUBTITLE = cb_subtitle, POST = post, _extra = ex
70;
71  compile_opt idl2, strictarrsubs
72;
73@cm_general
74  IF NOT keyword_set(key_forgetold) THEN BEGIN
75@updatekwd
76  ENDIF
77;------------------------------------------------------------
78  if keyword_set(min) then clbinf = min
79  if keyword_set(max) then clbsup = min
80  if keyword_set(divisions) THEN  clbdiv = divisions
81  nocolorbar = keyword_set(nocolorbar) + keyword_set(nofill) $
82               + keyword_set(color_c)
83;------------------------------------------------------------
84    def_myuniquetmpdir
85;
86  IF lmgr(/demo) EQ 1 THEN BEGIN
87; if we are in demo mode, we cannot save the parameters in a temporary file...
88@cm_demomode_used
89;
90     colorbarparam = {colnumb:colnumb, clbinf:clbinf $
91                      , clbsup:clbsup, clbdiv:clbdiv}
92   ENDIF ELSE BEGIN
93      save, colnumb, clbinf, clbsup, clbdiv $
94          , file = myuniquetmpdir + '4colorbar.dat'
95   ENDELSE
96;------------------------------------------------------------
97   if keyword_set(nocolorbar) then return
98;------------------------------------------------------------
99   ancienx = !x
100   ancieny = !y
101   ancienp = !p
102   reinitplt
103   !x.style = 1
104   !y.style = 1
105;------------------------------------------------------------
106     colorbar, cb_color = 0, cb_charsize = ancienp.charsize $
107       , pscolor = keyword_set(post), division = clbdiv $
108       , min = clbinf, max = clbsup $
109       , cb_title = cb_title, discret = colnumb, _extra = ex
110;------------------------------------------------------------
111   !x= ancienx
112   !y= ancieny
113   !p= ancienp
114;
115   return
116end
Note: See TracBrowser for help on using the repository browser.