Skip to main content
  • Home
  • Documentation
  • FAQ
  • Downloads
  • Support
  • Current Release Notes
  • Ferret Users Guide
    • Users Guide Index
    • Commands Reference
    • 1. Introduction
    • 2. Data Set Basics
    • 3. Variables & Expressions
    • 4. Grids & Regions
    • 5. Animations & Gif Images
    • 6. Customizing Plots
    • 7. Handling String Data Symbols
    • 8. Working with Special Data Sets
    • 9. Computing Environment
    • 10. Converting to NetCDF
    • 11. Writing External Functions
    • Glossary
    • Appendix A: Functions
    • Appendix B: PPLUS Guide
    • Appendix C: Ferret-Specific PPLUS Enhancements
  • Previous Release Notes
  • Tutorials and Demos
    • Ferret Tour
    • DSG files: Discrete Sampling Geometries Demo
    • Ferret sorting demo
    • Fast Fourier Transforms demo
    • Empirical Orthogonal Functions demo
    • Ferret objective analysis demo
    • Ferret Palette Demo
    • Map projections
    • Ferret polygon vector demo
    • Ferret Graticules demo
    • Ferret Polytube Demo
    • Ferret Polymark Demo
    • Ferret Constant-Array demo
    • Ferret land_detail demo
    • COADS Tour
    • Levitus Tour
    • Use OPeNDAP
    • Ferret binary read demo
  • PyFerret
    • PyFerret Downloads and Install ../../faq/ferret-faqs.html
    • What is PyFerret?
    • Why use PyFerret?
    • PyFerret for the Ferret user
    • PyFerret command syntax: quick-start notes
    • PyFerret for the Python user
    • Graphics in PyFerret ?
    • New Ferret functionality
    • PyFerret Python functions and constants
    • PyFerret Python objects and methods
    • Ferret external functions in Python
    • Ferret Fortran external functions
    • PyFerret metadata-and-data dictionaries
  • OPeNDAP
    • OPeNDAP usage in Ferret
    • Use OPeNDAP Demo
    • Test OPeNDAP

HARD COPY

Appendix C Sec4

HARD COPY

PostScript formatted files suitable for printing can be generated from PPL+ metafiles using the gksm2ps command. Several command line arguments permit the tailoring of the output. The command and its arguments are:

gksm2ps:Send PostScript translation of GKS metafiles to a file

usage: gksm2ps [-h] [-p landscape||portrait] [-l ps||cps] [-d cps||phaser] \
[-X || -o <ps_output_file>] [-R] [-a] [-g WxH+X+Y] [-v] file(s)

-h print this help message
-p page orientation, landscape or portrait (default fits to page)
-l line styles, ps == monochrome (default), cps == color
-d device type, cps == Postscript (default), phaser == TEK phaser PS
-X Send output to your Xwindow for preview instead of a file
-o output file name (default name is 'gksm2ps_output.ps')
-R do not rename files with a date stamp appended (default is to stamp)
-a make hard copy the size of the original plot (default fits to page)
-g WxH+X+Y WIDTH, HEIGHT, XOFFSET, & YOFFSET in points
-v list version number of gksm2ps and do nothing else
file(s) The specific metafile(s) to be translated.

More about the arguments and their effects:

-h Simply print the above help message.

-p Specifies the orientation of the plot on the page to be landscape (with the long side of the page horizontal), or portrait (the short side horizontal). The default fits the plot on the page in the orientaion that best fits.

-l Specifies line styles that will be used in the PS output. Monochrome is the default but color may be more appropriate on color devices.

-d Specifies the device type. Phaser printers using transfer sheets are PostScript, but the available plotting area is reduced. The phaser option reduces the size of the plot slightly.

-X This option lets you preview plots on your workstation screen.

-o Specifies the output file name. All metafiles translated in a single execution of the gksm2ps command are writen to a single file.

-R The default renaming of the metafiles to be translated is intended to help distinguish metafiles that have been printed from those newly made. This option turns off that renaming.

-a The original size of the PPL plots is captured in the metafile; use this option to create the hard copy that size. The default fits the plot to the available page size.

-g Specify the hard copy plot size and offset in points (72 points = 1 inch).

-v Just lists the version number.

file(s) Name the metafiles to be translated; separate the file names with a space. Wild card specification can be used.