Wiki Markup |
---|
Postscript output in Geocap is mainly created by using the *[ref:psc]* command. They allow VTK data, graphics primitives, text, and axis to appear in Postscript format for later output to a hardcopy device. |
...
{info | |
Code Block | |
---|---|
:title | =Main Postscript | features
|
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
- Open a Postscript file
- Draw something, e.g. a map and some axes
- Close the postscript file
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* {info} 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 # Open a Postscript file # Draw something, e.g. a map and some axes # Close the postscript file {code} 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 {code} {pagebreak} |