1

I'm trying to insert multiple figures under 1 caption. I use subfloat and don't know how to fit all my figures in 1 page of document. Can someone help me? Thank you in advance!

\begin{figure}
\centering
\begin{tabular}{cccc}
\subfloat{\includegraphics[width=.8\linewidth]{fig1}} & 
\subfloat{\includegraphics[width=.8\linewidth]{fig2}} & \\
\subfloat{\includegraphics[width=.8\linewidth]{fig3}} & 
\subfloat{\includegraphics[width=.8\linewidth]{fig4}}\\
\subfloat{\includegraphics[width=.8\linewidth]{fig5}}\\
\end{tabular}
\caption{correlation}
\end{figure}
0

like this?

enter image description here

\documentclass{article}
\usepackage[demo]{graphicx}
\usepackage{subfig}

\begin{document}
\begin{figure}
    \centering
\subfloat{\includegraphics[width=.48\linewidth]{fig1}}
    \hfill
\subfloat{\includegraphics[width=.48\linewidth]{fig2}}

\subfloat{\includegraphics[width=.48\linewidth]{fig3}}
    \hfill
\subfloat{\includegraphics[width=.48\linewidth]{fig4}}\

\subfloat{\includegraphics[width=.48\linewidth]{fig5}}\\
    \caption{correlation}
    \label{fig:corr}
\end{figure}
\end{document}

edit: similar result you can obtain, as pointed egreg in his comment below, also without use of \subfloat environments:

\documentclass{article}
\usepackage[demo]{graphicx}

\begin{document}
\begin{figure}
    \centering
\includegraphics[width=.48\linewidth]{fig1}
    \hfill
\includegraphics[width=.48\linewidth]{fig2}

\medskip
\includegraphics[width=.48\linewidth]{fig3}
    \hfill
\includegraphics[width=.48\linewidth]{fig4}

\medskip
\includegraphics[width=.48\linewidth]{fig5}
    \caption{correlation}
    \label{fig:corr}
\end{figure}
\end{document}
  • There's no need for \subfloat if no subcaption is required. – egreg Nov 21 '17 at 21:15
  • @egreg, you have right. but then you need to add vertical space between rows with images. i add this possibility to my answer. thank you for pointing this! – Zarko Nov 21 '17 at 21:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.