Keywords: GMT_Docs

Next: 4.4.7 Timestamps on plots: Up: 4.4 Standardized command line Previous: 4.4.5 Portrait plot orientation: Contents Index

## 4.4.6 Plot Overlays: The -K -O options

Figure 4.19: A final PostScript file consists of any number 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 4.19). Thus, when overlaying several GMT plots we must make sure that the first plot call omits 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 omits 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. If you run only one plot program, ignore both the -O and -K options; they are only used when stacking plots.

Next: 4.4.7 Timestamps on plots: Up: 4.4 Standardized command line Previous: 4.4.5 Portrait plot orientation: Contents Index