source: trunk/PLOTS/DIVERS/barrecouleur.pro @ 2

Last change on this file since 2 was 2, checked in by opalod, 22 years ago

Initial revision

  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 1.6 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, NOCOLORBAR = nocolorbar, CB_TITLE = cb_title, CB_SUBTITLE = cb_subtitle $
22                  , POST = post, _extra = ex
23@common
24;------------------------------------------------------------
25   ancienx = !x
26   ancieny = !y
27   ancienp = !p
28   reinitplt
29   !x.style = 1
30   !y.style = 1
31;------------------------------------------------------------
32   if n_elements(ex) NE 0 then BEGIN
33      if (where(tag_names(ex) EQ 'MIN'))[0] NE -1 then colorbarinf=ex.MIN
34      if (where(tag_names(ex) EQ 'MAX'))[0] NE -1 then colorbarsup=ex.MAX
35      if (where(tag_names(ex) EQ 'DIVISIONS'))[0] NE -1 then colorbardiv=ex.DIVISIONS
36      if (where(tag_names(ex) EQ 'NOCOULEUR'))[0] NE -1 then nocolorbar = 1
37   ENDIF
38   if not keyword_set(nocolorbar) then BEGIN
39      colorbar,cb_color=0, cb_charsize=ancienp.charsize, pscolor=keyword_set(post) $
40       , cb_title = cb_title,_extra = ex
41   ENDIF
42   !x= ancienx
43   !y= ancieny
44   !p= ancienp
45   return
46end
Note: See TracBrowser for help on using the repository browser.