1psdriver(1)                 GRASS GIS User's Manual                psdriver(1)
2
3
4

PostScript DISPLAY DRIVER

6       PS display driver to create PostScript files.
7

DESCRIPTION

9       The PS driver generates a PostScript file from GRASS display commands.
10

USAGE

12   Environment variables
13       The  PS  driver  can be enabled by setting GRASS_RENDER_IMMEDIATE vari‐
14       able, eg.
15       export GRASS_RENDER_IMMEDIATE=ps
16       Several environment variables affect the operation of the PS driver:
17
18GRASS_RENDER_WIDTH=xxx
19               the width of the image map (default is 640).
20
21GRASS_RENDER_HEIGHT=yyy
22               the height of the image map (default is 480).
23
24GRASS_RENDER_TRUECOLOR=[TRUE|FALSE]
25               sets true-color support. Default is FALSE.
26
27GRASS_RENDER_FILE
28               name of output file. If it ends with ".eps" an EPS file will be
29               created.
30
31GRASS_RENDER_PS_PAPER
32               sets  the screen dimensions and margins to fit a standard paper
33               size, see also GRASS_RENDER_WIDTH, GRASS_RENDER_HEIGHT.
34
35GRASS_RENDER_PS_LANDSCAPE
36               if TRUE, the screen is rotated 90 degrees counter-clockwise  so
37               that a "landscape" screen fits better on "portrait" paper.
38
39GRASS_RENDER_PS_HEADER
40               if  FALSE,  the output is appended to any existing file, and no
41               prolog or setup sections are generated.
42
43GRASS_RENDER_PS_TRAILER
44               if FALSE, no trailer section is generated.
45
46   Example
47       export GRASS_RENDER_IMMEDIATE=ps
48       export GRASS_RENDER_TRUECOLOR=TRUE
49       g.region raster=elevation
50       d.rast elevation
51       d.vect roadsmajor color=red
52       This writes a file named map.ps in your current directory.
53

NOTES

55       The resolution of the output files is defined  by  current  region  ex‐
56       tents.  Use  g.region -p to get the number of rows and cols and use the
57       environment variables to set the image size. If you would like a larger
58       image, multiply both rows and cols by the same whole number to preserve
59       the aspect ratio.
60
61       GRASS_RENDER_TRUECOLOR requires either PostScript level 2  or  level  1
62       plus  the  colorimage  and  setrgbcolor operators (this is the case for
63       colour printers which pre-date level 2 PostScript).
64
65       Masked images (d.rast, d.rgb, d.his -n) require PostScript level 3.
66

SEE ALSO

68        Cairo driver, PNG driver, HTML driver, variables
69       d.rast, d.vect, d.mon, d.erase, d.redraw
70

AUTHOR

72       Glynn Clements, 2007
73
74       Main index | Topics index | Keywords index | Graphical index | Full in‐
75       dex
76
77       © 2003-2022 GRASS Development Team, GRASS GIS 8.2.0 Reference Manual
78
79
80
81GRASS 8.2.0                                                        psdriver(1)
Impressum