1 | ;+ |
---|
2 | ; |
---|
3 | ; @file_comments |
---|
4 | ; Same thing than plot but compatible with the whole environment (common.pro included) |
---|
5 | ; |
---|
6 | ; @categories |
---|
7 | ; Graphics |
---|
8 | ; |
---|
9 | ; @keyword NOREINITPLT |
---|
10 | ; We active it if we do not want environment variables !p, !x, !y, !z |
---|
11 | ; to be reinitilalizated by the procedure reinitplt |
---|
12 | ; |
---|
13 | ; @keyword _EXTRA |
---|
14 | ; Used to pass keywords |
---|
15 | ; |
---|
16 | ; @uses |
---|
17 | ; common.pro |
---|
18 | ; |
---|
19 | ; @restrictions |
---|
20 | ; If NOREINITPLT is not activated, all environment |
---|
21 | ; variables !p, !x, !y, !z are reinitializted by the procedure reinitplt |
---|
22 | ; |
---|
23 | ; @examples |
---|
24 | ; IDL> splot, indgen(10),ystyle=1,small=[1,2,1],/portrait |
---|
25 | ; IDL> splot, -indgen(10),ystyle=1,small=[1,2,2],/noerase |
---|
26 | ; IDL> \@ps |
---|
27 | ; |
---|
28 | ; @history |
---|
29 | ; Sebastien Masson (smasson\@lodyc.jussieu.fr) |
---|
30 | ; 18/10/1999 |
---|
31 | ; |
---|
32 | ; @version |
---|
33 | ; $Id$ |
---|
34 | ; |
---|
35 | ;- |
---|
36 | ; |
---|
37 | PRO splot, x, y, NOREINITPLT = noreinitplt, _EXTRA = ex |
---|
38 | ; |
---|
39 | compile_opt idl2, strictarrsubs |
---|
40 | ; |
---|
41 | @common |
---|
42 | ; 1) I reinitializate the graphic environment (les variables !x, !y et !p): |
---|
43 | if NOT keyword_set(NOREINITPLT) then reinitplt, _extra = ex |
---|
44 | ; 2) i put the drawing on the screen like on the postscript |
---|
45 | placedessin, 'autre', _extra = ex |
---|
46 | ; 3) Drawing |
---|
47 | if n_elements(y) EQ 0 then plot, x, xstyle = 1, ystyle = 1, _EXTRA = ex $ |
---|
48 | ELSE plot, x, y, xstyle = 1, ystyle = 1, _EXTRA = ex |
---|
49 | ; 4) End of drawing |
---|
50 | terminedessin, _extra=ex |
---|
51 | ; |
---|
52 | return |
---|
53 | end |
---|