1

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

Naema
  • 2,305
  • This question: http://tex.stackexchange.com/questions/169541/looking-for-three-images-on-top-of-each-other-with-text-underneath-each as well as this answer are related: http://tex.stackexchange.com/questions/170304/horizontal-alignment-of-subfigure-edges/170306#170306 – Steven B. Segletes Sep 24 '14 at 17:16
  • Yo can also have a look at the section '1.1 Do you need this package?' in the documentation of 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
  • A simple solution is to use a tabular. – John Kormylo Sep 24 '14 at 18:06
  • Martinez, I need one caption for all three images but the three images must have a,b,c labeling so that I can refer to them in the caption. can you post your example? – Naema Sep 24 '14 at 18:58
  • John Kormylo, I would love to see the example with "tabular" – Naema Sep 24 '14 at 18:59

2 Answers2

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}

tabular

Why subfigure was developed in the first place is beyond me.

John Kormylo
  • 79,712
  • 3
  • 50
  • 120