.TH psdriver 1grass "" "GRASS 6.4.4" "Grass User's Manual" .SH NAME \fI\fB PS driver\fR\fR - driver to create PostScript files. .br \fI(drivers)\fR .SH DESCRIPTION The PS driver generates a PostScript file from GRASS display commands. The driver is started as 'pseudo' monitor (PS file instead) and when stopped, all output from previously used display commands are written to the PostScript file. .SH USAGE .SS Environment variables Several environment variables affect the operation of the PS driver: .RS \fBGRASS_PSFILE\fR .br name of output file. If it ends with ".eps" an EPS file will be created. .br \fBGRASS_PAPER\fR .br sets the screen dimensions and margins to fit a standard paper size, see also GRASS_WIDTH, GRASS_HEIGHT. .br \fBGRASS_WIDTH\fR .br defines the width of the screen, see also GRASS_HEIGHT .br \fBGRASS_HEIGHT\fR .br defines the height of the screen, see also GRASS_WIDTH .br \fBGRASS_TRUECOLOR\fR .br if TRUE, the PS driver generates color output, otherwise monochrome. .br \fBGRASS_LANDSCAPE\fR .br if TRUE, the screen is rotated 90 degrees counter-clockwise so that a "landscape" screen fits better on \(dqportrait" paper. .br \fBGRASS_PS_HEADER\fR .br if FALSE, the output is appended to any existing file, and no prolog or setup sections are generated. .br \fBGRASS_PS_TRAILER\fR .br if FALSE, no trailer section is generated. .RE .SS Example ..IP Start up the driver \fC .DS .br d.mon start=PS .br .DE \fR Display raster map and vector polygons \fC .DS .br d.rast \fIsomerastermap\fR .br d.vect map=\fIsomevectormap\fR color=red .br .DE \fR Stop the driver subsequently. This will write a file named map.ps to be created in your current directory: \fC .DS .br d.mon stop=PS .br .DE \fR .PP .SH NOTES The resolution of the \fIPS\fR raster map is defined by the map extents. Use \fIg.region \-p\fR to get the number of rows and cols and use the environment variables to set the PS size. If you would like a larger image, multiply both rows and cols by the same whole number to preserve the aspect ratio. .PP GRASS_TRUECOLOR requires either PostScript level 2 or level 1 plus the colorimage and setrgbcolor operators (this is the case for colour printers which pre-date level 2 PostScript). .PP Only masked images (d.rast \-o, d.rgb \-o, d.his -n) require PostScript level 3. .SH SEE ALSO \fI Display drivers .br HTMLMAP driver, PNG driver, XDRIVER .br d.frame, d.out.file, d.mon, d.rast, d.vect \fR .SH AUTHOR Glynn Clements, 2007 .PP \fILast changed: $Date: 2012-03-03 06:22:34 +0100 (Sat, 03 Mar 2012) $\fR .PP Full index .PP © 2003-2014 GRASS Development Team