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

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

improvements/corrections of some *.pro headers

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.7 KB
RevLine 
[2]1;+
2;
[142]3; @file_comments
4; End the drawing if needed when it is a postscript.
[2]5;
[142]6; @categories
[157]7; Utilities, Graphics
[2]8;
[231]9; @keyword POST
[142]10; Make a postscript. Only works if we made one drawing on the page.
11; If we make several drawing, use \@ps.
[2]12;
[231]13; @keyword SMALL {type=vector}
14; Vector composed of 3 or 4 elements, applied to make a drawing on a
[142]15; small portion of a page or screen. It delimit the zone where the drawing will be done.
16;     If there is 4 elements:
[231]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
[142]19; and left corner and of the up and right corner of the drawing zone.
20;     If there is 3 elements:
[231]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
[142]23; the number 1 and then, following the writing direction.
[231]24; By default, we make the largest drawing we can do, conserving the aspect rapport
[163]25; (except when REMPLI is activated).
[2]26;
[231]27; @keyword _EXTRA
28; Used to pass keywords
[2]29;
[142]30; @uses
31; common.pro
[2]32;
[142]33; @history
[157]34; Sebastien Masson (smasson\@lodyc.jussieu.fr)
[142]35;                       3/6/1999
[2]36;
[142]37; @version
38; $Id$
[2]39;
40;-
[231]41;
[37]42PRO terminedessin, POST = post, SMALL = small, _extra = ex
[114]43;
44  compile_opt idl2, strictarrsubs
45;
[37]46@cm_4ps
47  IF NOT keyword_set(key_forgetold) THEN BEGIN
48@updatenew
49@updatekwd
50  ENDIF
51;---------------------------------------------------------
[2]52   if keyword_set(post) then BEGIN
[37]53      if keyword_set(small) then $
54      if total(small) NE $
55        (page_margins[2]+page_margins[0]+total(page_size) $
56         -page_margins[1]-page_margins[3]) then return
[2]57      closeps
[37]58      printps
[2]59   endif
60   return
61end
Note: See TracBrowser for help on using the repository browser.