1psdriver(1)                   Grass User's Manual                  psdriver(1)
2
3
4

NAME

6        PS driver  - driver to create PostScript files
7       (drivers)
8

DESCRIPTION

10       The  PS driver generates a PostScript file from GRASS display commands.
11       The driver is started as 'pseudo' monitor (PS file  instead)  and  when
12       stopped,  all  output from previously used display commands are written
13       to the PostScript file.
14

USAGE

16   Environment variables
17       Several environment variables effect the operation of the PS driver:
18
19       GRASS_PSFILE
20         name of output file. If it ends with ".eps" an EPS file will be  cre‐
21       ated.
22
23       GRASS_PAPER
24         sets  the screen dimensions and margins to fit a standard paper size,
25       see also GRASS_WIDTH, GRASS_HEIGHT.
26
27       GRASS_WIDTH
28         defines the width of the screen, see also GRASS_HEIGHT
29
30       GRASS_HEIGHT
31         defines the height of the screen, see also GRASS_WIDTH
32
33       GRASS_TRUECOLOR
34         if "TRUE", the PS driver  generates  color  output,  otherwise  mono‐
35       chrome.
36
37       GRASS_LANDSCAPE
38         if "TRUE", the screen is rotated 90 degrees counter-clockwise so that
39       a "landscape" screen fits better on "portrait" paper.
40
41       GRASS_PS_HEADER
42         if "FALSE", the output is appended to any existing file, and no  pro‐
43       log or setup sections are generated.
44
45       GRASS_PS_TRAILER
46         if "FALSE", no trailer section is generated.
47
48   Example
49
50                d.mon start=PS
51        Display raster map and vector polygons
52
53                d.rast somerastermap
54                d.vect map=somevectormap color=red
55         Stop  the driver subsequently. This will write a file named map.ps to
56       be created in your current directory:
57                d.mon stop=PS
58
59

NOTES

61       The resolution of the PS raster map is defined by the map extents.  Use
62       g.region  -p to get the number of rows and cols and use the environment
63       variables to set the PS size. If you would like a larger image,  multi‐
64       ply  both rows and cols by the same whole number to preserve the aspect
65       ratio.
66
67       GRASS_TRUECOLOR requires either PostScript level 2 or level 1 plus  the
68       colorimage  and  setrgbcolor  operators  (this  is  the case for colour
69       printers which pre-date level 2 PostScript).
70
71       Only masked images (d.rast -o, d.rgb -o, d.his -n)  require  PostScript
72       level 3.
73

SEE ALSO

75        HTML map driver, PNG driver, XDRIVER
76       d.frame, d.out.file, d.mon, d.rast, d.vect
77

AUTHOR

79       Glynn Clements, 2007
80
81       Last changed: $Date: 2007-08-23 15:39:39 +0200 (Thu, 23 Aug 2007) $
82
83       Full index
84
85       © 2003-2008 GRASS Development Team
86
87
88
89GRASS 6.3.0                                                        psdriver(1)
Impressum