Does anybody know the easiest way to prevent a subfigure from going to the next page? I have 3 subfigures, 1 or 2 of which would easily fit on the previous page, but because it is in one figure, it puts all three figures on the next page.
My code is:
\begin{figure}[H]
\begin{center}
\subfigure[Results on MNIST fully connected]{
\includegraphics[scale=0.48]{result4_mnist_fc_s2gd.png}
}
\subfigure[Results on MNIST ConvNet]{
\includegraphics[scale=0.48]{result5_mnist_conv_s2gd.png}
}
\subfigure[Results on CIFAR-10 ConvNet]{
\includegraphics[scale=0.48]{result6_cifar10_s2gd.png}
}
\end{center}
\caption{Results for S2GD methods}
\label{fig:NN_example}
\end{figure}
Thanks!
figureinto two or three. – Heiko Oberdiek Aug 20 '15 at 14:04\centeringinstead of thecenterenvironment: the latter adds spurious vertical spacing. – Bernard Aug 20 '15 at 14:05scaletry to usewidth. Ifwidth=0.32\textwidthgives satisfactory big pictures, than you can put all three figures in one line. Otherwise you need to split them into two figures (as stated @HeikoOberdiek. – Zarko Aug 20 '15 at 14:24changepagepackage or (ii) split figure as you suggested. – Zarko Aug 20 '15 at 14:52