Next: The -P option Up: GMT Common Command Line Previous: The -J? options

## The -K -O options

Figure 1.10: (left) Input files may have an arbitrary number of header records, specified with -H. (right) A final PostScript file consists of a stack of individual pieces

The -–K and -O options control the generation of PostScript code for multiple overlay plots. All PostScript files must have a header (for initializations), a body (drawing the figure), and a trailer (printing it out) (see Figure 1.10). Thus, when overlaying several GMT plots we must make sure that the first plot call ommits the trailer, that all intermediate calls omit both header and trailer, and that the final overlay omits the header. -–K omits the trailer which implies that more PostScript code will be appended later [Default terminates the plot system]. -–O selects Overlay plot mode and ommits the header information [Default initializes a new plot system]. Most unexpected results for multiple overlay plots can be traced to the incorrect use of these options.

Next: The -P option Up: GMT Common Command Line Previous: The -J? options