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