source: trunk/SRC/ToBeReviewed/PLOTS/DIVERS/terminedessin.pro @ 327

Last change on this file since 327 was 327, checked in by pinsard, 16 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.7 KB
Line 
1;+
2;
3; @file_comments
4; End the drawing if needed when it is a postscript.
5;
6; @categories
7; Utilities, Graphics
8;
9; @keyword POST
10; Make a postscript. Only works if we made one drawing on the page.
11; If we make several drawing, use \@<pro>ps</pro>.
12;
13; @keyword SMALL {type=vector}
14; Vector composed of 3 or 4 elements, applied to make a drawing on a
15; small portion of a page or screen. It delimit the zone where the drawing will be done.
16;     If there is 4 elements:
17; then is constituted of coordinates (expressed in cm located from the up and
18; left corner of the page or the window (in portrait like in landscape)) of the bottom
19; and left corner and of the up and right corner of the drawing zone.
20;     If there is 3 elements:
21; in this case, we divide the page or the screen in small[0] columns and in small[1] lines
22; the drawing made in the box numbered small[2]. The numerotation starting up and left by
23; the number 1 and then, following the writing direction.
24; By default, we make the largest drawing we can do, conserving the aspect rapport
25; (except when REMPLI is activated).
26;
27; @keyword _EXTRA
28; Used to pass keywords
29;
30; @uses
31; common.pro
32;
33; @history
34; Sebastien Masson (smasson\@lodyc.jussieu.fr)
35;                       3/6/1999
36;
37; @version
38; $Id$
39;
40;-
41PRO terminedessin, POST=post, SMALL=small, _EXTRA=ex
42;
43  compile_opt idl2, strictarrsubs
44;
45@cm_4ps
46  IF NOT keyword_set(key_forgetold) THEN BEGIN
47@updatenew
48@updatekwd
49  ENDIF
50;---------------------------------------------------------
51   if keyword_set(post) then BEGIN
52      if keyword_set(small) then $
53      if total(small) NE $
54        (page_margins[2]+page_margins[0]+total(page_size) $
55         -page_margins[1]-page_margins[3]) then return
56      closeps
57      printps
58   endif
59   return
60end
Note: See TracBrowser for help on using the repository browser.