Figure margins

A single plot in . is known as a figure and comprises a plot region surrounded by margins (possibly containing axis labels, titles, etc.) and (usually) bounded by the axes themselves. A typical figure appears in Figure [*]. Graphics parameters controlling figure layout include:


  
Figure: Anatomy of an S figure
\begin{figure}
 \begin{center}

\setlength {\unitlength}{0.0125in}
 \begin{pictu...
 ...lb]{\raisebox{0pt}[0pt][0pt]{\rm Margin}}}\end{picture} \end{center}\end{figure}


\begin{session}
\separate
mai=
\quad c(1,0.5,0.5,0) 
&
Widths of the bottom, lef...
 ...{\tt mai}, except the measurement unit is text lines.
\cr
\separate\end{session}

mar and mai are equivalent in the sense that setting one changes the value of the other. The default values chosen for this parameter are often too large; the right-hand margin is rarely needed, and neither is the top margin if no title is being used. The bottom and left margins must be large enough to accommodate the axis and tick labels. Furthermore, the default is chosen without regard to the size of the device surface: for example, using the postscript() driver with the height=4 argument will result in a plot which is about 50% margin unless mar or mai are set explicitly. When multiple figures are in use (see below) the margins are reduced by half, however this may not be enough when many figures share the same page.



Jeff Banfield
2/13/1998