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

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

modification of some headers (+some corrections) to prepare usage of the new idldoc

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