I'm struggling to find a solution for my problem. I want something like this
but for VERTICALLY aligned subfigures, as an attempt to save some vertical space (I can't reduce the size more than this)
I'm using \subfig
package to have my subfigures aligned. here is my code:
\begin{figure}[ht!]
\centering
\begin{minipage}{\textwidth}
\centering
\subfloat[]
{
\includegraphics[width=0.6\textwidth, keepaspectratio]{fig_a}
\label{fig:a}
}
\\
\centering
\subfloat[]
{
\includegraphics[width=0.6\textwidth, keepaspectratio]{fig_b}
\label{fig:b}
}
\\
\centering
\subfloat[]
{
\includegraphics[width=0.6\textwidth, keepaspectratio]{fig_c}
\label{fig:c}
}
\caption{Three figures, take too much vertical space}
\label{fig:unified}
\end{minipage}
\end{figure}
Best Answer
Note that only the image is centered, not the caption.
Ideally one should put the
\label
immediately after the\caption
, but in this case that isn't possible. Instead one should put the\label
inside the caption. Otherwise some of the local macros used by\label
may be lost.