next up previous contents index
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. (right) A final PostScript file consists of a stack of individual pieces
\begin{figure}\centering\begin{tabular}{cc}
\epsfig{figure=eps/GMT_-H.eps}& \epsfig{figure=eps/GMT_-OK.eps}\\
\end{tabular}\end{figure}

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 up previous contents index
Next: 1.6.6 The -P option Up: 1.6 GMT Common Command Previous: 1.6.4 The -J? options   Contents   Index
Paul Wessel 2001-04-18