source: trunk/SRC/ToBeReviewed/PLOTS/reinitplt.pro @ 231

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

improvements/corrections of some *.pro headers

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.1 KB
Line 
1;+
2;
3; @file_comments
4; This procedure will reinitialize all or a selection
5; of the system plot variables
6;
7; @categories
8; Utilities
9;
10; @keyword X
11; clear the appropriate variable
12;
13; @keyword Y
14; clear the appropriate variable
15;       
16; @keyword Z   
17; clear the appropriate variable
18;
19; @keyword P
20; clear the appropriate variable
21;               
22; @keyword ALL 
23; Clear all, this is equivalent to /x,/y,/z,/p
24;               
25; @keyword INVERT
26; Invert the logic. Clear all unselected variables.
27; Therefore "reinitplt,/all,/invert" does nothing.
28;
29; @uses
30; common.pro
31;
32; @restrictions
33; The system plot variables are changed.
34;       
35; @history
36; Written by: Trevor Harris, Physics Dept., University of Adelaide,
37;               July, 1990.
38;
39; Sebastien Masson 7/5/98
40;
41; @version
42; $Id$
43;
44;-
45;
46PRO reinitplt, all=all,x=x,y=y,z=z,p=p, invert=invert
47;
48  compile_opt idl2, strictarrsubs
49;
50        clearx = 0
51        cleary = 0
52        clearz = 0
53        clearp = 0
54        if (keyword_set(x)) then clearx = 1
55        if (keyword_set(y)) then cleary = 1
56        if (keyword_set(z)) then clearz = 1
57        if (keyword_set(p)) then clearp = 1
58        if (keyword_set(all)) $
59            or (not keyword_set(x) and not keyword_set(y) and $
60                not keyword_set(z) and not keyword_set(p)) then begin
61                clearx = 1
62                cleary = 1
63                clearz = 1
64                clearp = 1
65        endif
66
67        if (keyword_set(invert)) then begin
68                clearx = not clearx
69                cleary = not cleary
70                clearz = not clearz
71                clearp = not clearp
72        endif
73
74        if (clearx) then begin
75                !x.charsize=0
76                !x.GRIDSTYLE=0
77                !X.MARGIN=[10,3]
78                !X.MINOR=0
79                !X.OMARGIN=[0,0]
80                !x.region=0
81                !X.RANGE=0
82                !x.STYLE=5
83;                !x.tick=1
84                !x.TICKFORMAT=''
85                !x.TICKLEN=0
86                !x.tickname=''
87                !x.ticks=0
88                !X.TICKV[0]=!X.TICKV[1]
89                !x.title=''
90                !x.TYPE=0
91        endif
92        if (cleary) then begin
93                !y.charsize=0
94                !y.GRIDSTYLE=0
95                !Y.MARGIN=[10,3]
96                !Y.MINOR=0
97                !Y.OMARGIN=[0,0]
98                !y.region=0
99                !Y.RANGE=0
100                !y.STYLE=5
101;                !y.tick=1
102                !y.TICKFORMAT=''
103                !y.TICKLEN=0
104                !y.tickname=''
105                !y.ticks=0
106                !Y.TICKV[0]=!Y.TICKV[1]
107                !y.title=''
108                !y.TYPE=0
109        endif
110        if (clearz) then begin
111                !z.charsize=0
112                !z.GRIDSTYLE=0
113                !Z.MARGIN=[10,3]
114                !Z.MINOR=0
115                !Z.OMARGIN=[0,0]
116                !z.region=0
117                !Z.RANGE=0
118                !z.STYLE=1
119;                !z.tick=1
120                !z.TICKFORMAT=''
121                !z.TICKLEN=0
122                !z.tickname=''
123                !z.ticks=0
124                !Z.TICKV[0]=!Z.TICKV[1]
125                !z.title=''
126                !z.TYPE=0
127        endif
128        if (clearp) then begin
129                !p.BACKGROUND=(!d.n_colors-1) < 255
130                !p.CHARSIZE=1.         
131                !p.CHARTHICK=0 
132                !p.LINESTYLE=0         
133                !p.MULTI=replicate(0,5)         
134                !p.NOERASE=0           
135                !p.POSITION=0           
136                !p.region=0             
137                !p.title=''
138                !p.subtitle=''
139                !p.ticklen=0.02
140                !p.thick=0.1
141                !p.color=0
142        endif
143        return
144        end
145
146
147
148
149
150
Note: See TracBrowser for help on using the repository browser.