source: trunk/ToBeReviewed/PLOTS/DIVERS/barrecouleur.pro @ 37

Last change on this file since 37 was 37, checked in by pinsard, 18 years ago

upgrade of PLOTS/DIVERS according to cerbere.lodyc.jussieu.fr: /usr/home/smasson/SAXO_RD/ : files

  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
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@cm_general
28  IF NOT keyword_set(key_forgetold) THEN BEGIN
29@updatekwd
30  ENDIF
31;------------------------------------------------------------
32  if keyword_set(min) then clbinf = min
33  if keyword_set(max) then clbsup = min
34  if keyword_set(divisions) THEN  clbdiv = divisions
35  nocolorbar = keyword_set(nocolorbar) + keyword_set(nofill) $
36               + keyword_set(color_c) 
37;------------------------------------------------------------
38    def_myuniquetmpdir
39;
40  IF lmgr(/demo) EQ 1 THEN BEGIN
41; if we are in demo mode, we cannot save the parameters in a temporary file...
42@cm_demomode_used
43;
44     colorbarparam = {colnumb:colnumb, clbinf:clbinf $
45                      , clbsup:clbsup, clbdiv:clbdiv}
46   ENDIF ELSE BEGIN
47      save, colnumb, clbinf, clbsup, clbdiv $
48          , file = myuniquetmpdir + '4colorbar.dat'
49   ENDELSE
50;------------------------------------------------------------
51   if keyword_set(nocolorbar) then return
52;------------------------------------------------------------
53   ancienx = !x
54   ancieny = !y
55   ancienp = !p
56   reinitplt
57   !x.style = 1
58   !y.style = 1
59;------------------------------------------------------------
60     colorbar, cb_color = 0, cb_charsize = ancienp.charsize $
61       , pscolor = keyword_set(post), division = clbdiv $
62       , min = clbinf, max = clbsup $
63       , cb_title = cb_title, discret = colnumb, _extra = ex
64;------------------------------------------------------------
65   !x= ancienx
66   !y= ancieny
67   !p= ancienp
68;
69   return
70end
Note: See TracBrowser for help on using the repository browser.