Next: 1.6.6 The -P option Up: 1.6 GMT Common Command Previous: 1.6.4 The -J? options Contents Index

## 1.6.5 The -K -O options

Figure 1.10: (left) Input files may have an arbitrary number of header records, specified with -H; here, we would use -H3. (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. The -K switch omits the trailer which implies that more PostScript code will be appended later [Default terminates the plot system]. The -O switch 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: 1.6.6 The -P option Up: 1.6 GMT Common Command Previous: 1.6.4 The -J? options Contents Index