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

Last change on this file since 134 was 134, checked in by navarro, 18 years ago

change *.pro file properties (del eof-style, del executable, set keywords Id

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.5 KB
Line 
1;------------------------------------------------------------
2;------------------------------------------------------------
3;------------------------------------------------------------
4;+
5; NAME:barrecouleur
6;
7; PURPOSE:surcouche de colorbar
8;
9; CATEGORY:delestage de l''ecriture de plt, pltz, pltt
10;
11; CALLING SEQUENCE:barrecouleur
12;
13; SIDE EFFECTS: passer tous les arguments que l''on veut grace a _extra
14;
15; MODIFICATION HISTORY: Sebastien Masson (smasson@lodyc.jussieu.fr)
16;                       23/12/98
17;-
18;------------------------------------------------------------
19;------------------------------------------------------------
20;------------------------------------------------------------
21PRO barrecouleur, colnumb, clbinf, clbsup, clbdiv $
22                  , NOCOLORBAR = nocolorbar, CB_TITLE = cb_title $
23                  , NOFILL = nofill, COLOR_c = color_c $
24                  , min = min, max = max, divisions = divisions $
25                  , CB_SUBTITLE = cb_subtitle, POST = post, _extra = ex
26;------------------------------------------------------------
27;
28  compile_opt idl2, strictarrsubs
29;
30@cm_general
31  IF NOT keyword_set(key_forgetold) THEN BEGIN
32@updatekwd
33  ENDIF
34;------------------------------------------------------------
35  if keyword_set(min) then clbinf = min
36  if keyword_set(max) then clbsup = min
37  if keyword_set(divisions) THEN  clbdiv = divisions
38  nocolorbar = keyword_set(nocolorbar) + keyword_set(nofill) $
39               + keyword_set(color_c) 
40;------------------------------------------------------------
41    def_myuniquetmpdir
42;
43  IF lmgr(/demo) EQ 1 THEN BEGIN
44; if we are in demo mode, we cannot save the parameters in a temporary file...
45@cm_demomode_used
46;
47     colorbarparam = {colnumb:colnumb, clbinf:clbinf $
48                      , clbsup:clbsup, clbdiv:clbdiv}
49   ENDIF ELSE BEGIN
50      save, colnumb, clbinf, clbsup, clbdiv $
51          , file = myuniquetmpdir + '4colorbar.dat'
52   ENDELSE
53;------------------------------------------------------------
54   if keyword_set(nocolorbar) then return
55;------------------------------------------------------------
56   ancienx = !x
57   ancieny = !y
58   ancienp = !p
59   reinitplt
60   !x.style = 1
61   !y.style = 1
62;------------------------------------------------------------
63     colorbar, cb_color = 0, cb_charsize = ancienp.charsize $
64       , pscolor = keyword_set(post), division = clbdiv $
65       , min = clbinf, max = clbsup $
66       , cb_title = cb_title, discret = colnumb, _extra = ex
67;------------------------------------------------------------
68   !x= ancienx
69   !y= ancieny
70   !p= ancienp
71;
72   return
73end
Note: See TracBrowser for help on using the repository browser.