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

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

typo

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