[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. |
---|
[237] | 11 | ; If we make several drawing, use \@<pro>ps</pro>. |
---|
[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. |
---|
[367] | 24 | ; By default, we make the largest drawing we can do, conserving the aspect ration |
---|
[163] | 25 | ; (except when REMPLI is activated). |
---|
[2] | 26 | ; |
---|
[231] | 27 | ; @keyword _EXTRA |
---|
| 28 | ; Used to pass keywords |
---|
[2] | 29 | ; |
---|
[142] | 30 | ; @uses |
---|
[370] | 31 | ; <pro>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 | ;- |
---|
[327] | 41 | PRO terminedessin, POST=post, SMALL=small, _EXTRA=ex |
---|
[114] | 42 | ; |
---|
| 43 | compile_opt idl2, strictarrsubs |
---|
| 44 | ; |
---|
[37] | 45 | @cm_4ps |
---|
| 46 | IF NOT keyword_set(key_forgetold) THEN BEGIN |
---|
| 47 | @updatenew |
---|
| 48 | @updatekwd |
---|
| 49 | ENDIF |
---|
| 50 | ;--------------------------------------------------------- |
---|
[2] | 51 | if keyword_set(post) then BEGIN |
---|
[37] | 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 |
---|
[2] | 56 | closeps |
---|
[37] | 57 | printps |
---|
[2] | 58 | endif |
---|
| 59 | return |
---|
| 60 | end |
---|