Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 13 Next »

Postscript output in Geocap is mainly created by using the psc command. They allow VTK data, graphics primitives, text, and axis to appear in Postscript format for later output to a hardcopy device.

Main Postscript features

  • Conversion of all types of dataset and graphics, except gradient coloring
  • Flexible viewport setting on device
  • Axis. Parameters set by system (default) or by user
  • Text, where the user may specify font, size, rotation and position
  • Scaling to various formats
  • Graphics primitives such as points, lines and rectangles
  • Patterns
  • Very compact Postscript file using a compression filter

While almost any kind of plotting feature can be created using the above features in combination with the Tcl programming language, most users will eventually expect a higher level interface; this task is currently being worked on.

The three steps goes like this

  1. Open a Postscript file
  2. Draw something, e.g. a map and some axes
  3. Close the postscript file
win 0 100 0 100 0 100
psc format a4
psc open c:/tmp/elephant.ps
psc on
psc vie 0.1 0.1 0.9 0.9  ;# 10% margin
psc align center  ;# Center dataset frame with resp. to viewport

psc lwf 1
psc fontsize 0.3 cm
psc axes nsew incrx 10 incry 10

# Then draw something, i.e. a map

psc off
psc close
  • No labels