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

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

corrections of some misspellings in some *.pro

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