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
RevLine 
[2]1;+
2;
[142]3; @file_comments
[226]4; Overlayer of colorbar
[2]5;
[142]6; @categories
[157]7; Utilities
[2]8;
[325]9; @param colnumb
[163]10;
[325]11; @param clbinf
[163]12;
[325]13; @param clbsup
[163]14;
[325]15; @param clbdiv
[163]16;
17; @keyword NOCOLORBAR
18;
19; @keyword CB_TITLE
20;
21; @keyword NOFILL
22;
[237]23; @keyword COLOR_C
[226]24;
[163]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
[231]38; Used to pass keywords
[163]39;
[230]40; @restrictions
[232]41; pass all arguments we want thanks to _EXTRA
[2]42;
[142]43; @history
[157]44; Sebastien Masson (smasson\@lodyc.jussieu.fr)
[142]45;                       23/12/98
[2]46;
[142]47; @version
48; $Id$
49;
[230]50; @todo
51; seb: mettre les keyword et les param
[237]52;
[2]53;-
[37]54PRO barrecouleur, colnumb, clbinf, clbsup, clbdiv $
55                  , NOCOLORBAR = nocolorbar, CB_TITLE = cb_title $
56                  , NOFILL = nofill, COLOR_c = color_c $
[152]57                  , MIN = min, MAX = max, divisions = divisions $
[232]58                  , CB_SUBTITLE = cb_subtitle, POST = post, _EXTRA = ex
[114]59;
60  compile_opt idl2, strictarrsubs
61;
[37]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) $
[226]71               + keyword_set(color_c)
[37]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;------------------------------------------------------------
[226]86   if keyword_set(nocolorbar) then return
[37]87;------------------------------------------------------------
[2]88   ancienx = !x
89   ancieny = !y
90   ancienp = !p
91   reinitplt
92   !x.style = 1
93   !y.style = 1
94;------------------------------------------------------------
[37]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;------------------------------------------------------------
[2]100   !x= ancienx
101   !y= ancieny
102   !p= ancienp
[37]103;
[2]104   return
105end
Note: See TracBrowser for help on using the repository browser.