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

Last change on this file since 378 was 378, checked in by pinsard, 16 years ago

improvements of headers (typo, links, paragraphes, etc)

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