I need to do 3X1 subplots, that is 3 row X 1 column, does someone here know how to do it? Any help will be appreciated. thanks in advance
Asked
Active
Viewed 3,389 times
2 Answers
0
From the documentation of subfig, page 5, slightly modified (added \par) to place them in three rows:
\documentclass[a4paper]{article}
\usepackage{subfig}
\begin{document}
\begin{figure}%
\centering
\subfloat[][]{...figure code...}\par
\subfloat[][]{...figure code...}\par
\subfloat[][]{...figure code...}
\caption{Here are three figures.}%
\label{fig:cont}%
\end{figure}
\end{document}
umarcor
- 1,454
0
One tabular solution coming up:
\documentclass[a4paper]{article}
\usepackage{graphicx}
\usepackage{mwe}
\begin{document}
\begin{figure}%
\centering\begin{tabular}{c}
\includegraphics[scale=0.5]{example-image-a}\\
A\\[3ex]% add a little extra space
\includegraphics[scale=0.5]{example-image-b}\\
B\\[3ex]
\includegraphics[scale=0.5]{example-image-c}\\
C
\end{tabular}
\caption{Here are three figures.}%
\label{fig:cont}%
\end{figure}
\end{document}

Why subfigure was developed in the first place is beyond me.
John Kormylo
- 79,712
- 3
- 50
- 120
subfig. The better approach depends on how you want the figures to be labeled or how many captions do you want. – umarcor Sep 24 '14 at 17:23