I have five figures I want arranged in three rows of 2, 2 and 1. The first row contains 2 figures (like I want), but for some reason the next three figures are placed in their own rows. I cannot figure out why, I have tried adding \par\medskip which I have seen someone suggest, or combining subfigures and minipage environments, but that hasn't worked either.
\begin{figure}[h]
\captionsetup{width=0.7\linewidth}
\begin{subfigure}{.5\linewidth}
\centering
\includegraphics[width=70mm,scale=.3]{Figures/07-Appendix/BoxPlots/BoxRugo.png}
\caption{}
\label{fig:time1}
\end{subfigure}%
\begin{subfigure}{.5\linewidth}
\centering
\includegraphics[width=70mm,scale=.3]{Figures/07-Appendix/BoxPlots/BoxFormFac.png}
\caption{}
\label{fig:time2}
\end{subfigure}
\begin{subfigure}{\linewidth}
\centering
\includegraphics[width=70mm,scale=.3]{Figures/07-Appendix/BoxPlots/BoxVert.png}
\caption{}
\label{fig:time3}
\end{subfigure}
\begin{subfigure}{\linewidth}
\centering
\includegraphics[width=70mm,scale=.3]{Figures/07-Appendix/BoxPlots/BoxReg.png}
\caption{}
\label{fig:time3}
\end{subfigure}
\begin{subfigure}{\linewidth}
\centering
\includegraphics[width=70mm,scale=.3]{Figures/07-Appendix/BoxPlots/BoxPerimAreaRat.png}
\caption{}
\label{fig:time3}
\end{subfigure}
\caption{\textit{Boxplots}}
\label{fig:time}
\end{figure}
Best Answer
You're asking to set the last three boxes at
\linewidth
, so they occupy the whole line.Use
0.49\columnwidth
to leave some space between the figures on the same line and don't usewidth=70mm
andscale=0.3
, butwidth=\textwidth
, so the image will be as wide as allowed bysubfigure
.If you want the caption text to be in italics, use the appropriate setup, instead of adding explicit formatting instructions.
You may want to add
\medskip
between the rows; if you also add a top level\centering
(after\begin{figure}[htp]
), you'd get