source: trunk/SRC/ToBeReviewed/PLOTS/DESSINE/splot.pro @ 327

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

modification of headers : mainly blanks around = sign for keywords in declaration of function and pro

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.3 KB
Line 
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 reinitilalized by the procedure <pro>reinitplt</pro>
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 <pro>reinitplt</pro>
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;-
36PRO splot, x, y, NOREINITPLT=noreinitplt, _EXTRA=ex
37;
38  compile_opt idl2, strictarrsubs
39;
40@common
41; 1) I reinitialize the graphic environment (variables !x, !y and !p):
42   if NOT keyword_set(NOREINITPLT) then reinitplt, _extra = ex
43; 2) i put the drawing on the screen like on the postscript
44   placedessin, 'autre', _extra = ex
45; 3) Drawing
46   if n_elements(y) EQ 0 then plot,  x, xstyle = 1, ystyle = 1, _EXTRA = ex $
47   ELSE plot,  x, y, xstyle = 1, ystyle = 1, _EXTRA = ex
48; 4) End of drawing
49   terminedessin, _extra=ex
50;
51   return
52end
Note: See TracBrowser for help on using the repository browser.