source: trunk/PLOTS/DESSINE/splot.pro @ 2

Last change on this file since 2 was 2, checked in by opalod, 22 years ago

Initial revision

  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 1.8 KB
Line 
1;------------------------------------------------------------
2;------------------------------------------------------------
3;------------------------------------------------------------
4;+
5; NAME:splot (super plot)
6;
7; PURPOSE: meme chose que plot mais compatible avec l''ensemble de
8; l'environnement (common.pro est inclu)
9;
10; CATEGORY:dessine
11;
12; CALLING SEQUENCE: PLOT, [X,] Y
13;
14; INPUTS:cd IDL> ?plot
15;
16; KEYWORD PARAMETERS:
17;  meme que ceux de plot avec en plus:
18;
19;      NOREINITPLT: a actier si on ne veut pas que les variables
20;      d''environnemet !p, !x, !y, !z soient reinitialisees par la
21;      procedure reinitplt
22;
23; OUTPUTS:
24;
25;   Si NOREINITPLT n''est pas ective toutes les variables
26;      d''environnemet !p, !x, !y, !z sont reinitialisees par la
27;      procedure reinitplt
28;
29; COMMON BLOCKS:common.pro
30;
31; SIDE EFFECTS:
32;
33; RESTRICTIONS:
34;
35; EXAMPLE:
36;
37;      IDL> splot, indgen(10),ystyle=1,petit=[1,2,1],/portrait
38;      IDL> splot, -indgen(10),ystyle=1,petit=[1,2,2],/noerase
39;      IDL> @ps
40;
41; MODIFICATION HISTORY:Sebastien Masson (smasson@lodyc.jussieu.fr)
42;                      18/10/1999
43;-
44;------------------------------------------------------------
45;------------------------------------------------------------
46;------------------------------------------------------------
47PRO splot,  x, y, NOREINITPLT = noreinitplt, _EXTRA = ex
48@common
49; 1) je reinitialise l''environnememt graphique (les variables !x, !y et !p):
50   if NOT keyword_set(NOREINITPLT) then reinitplt, _extra = ex
51; 2) je place le dessin a l'ecran comme sur le postcript
52   placedessin, 'autre', _extra = ex
53; 3) je fais mon joli dessin
54   if n_elements(y) EQ 0 then plot,  x, _EXTRA = ex ELSE plot,  x, y, _EXTRA = ex
55; 4) je termine le dessin
56   terminedessin, _extra=ex
57;
58   return
59end
Note: See TracBrowser for help on using the repository browser.