Friday 7 June 2013

Vertical aligment of subfigure to the top edge

Vertical aligment of subfigure to the top edge

I have a small problem with vertical alignment in LaTeX. I have 3 figures with different height and I want to show them in one figure (side-by-side). Unfortunately, by default they are aligned to the bottom edge and it doesn't look good. However if I try to align them to the top edge it doesn't look good either, because the captions of subfigures are not aligned.

I cannot use subfig package, because there are some conflict with another package I use, but I use a lot of packages so I'm not sure what package is making the trouble.
Is there some possible way, how to align the subfigures to the top edge and prevent the alignment of the subcaption?
Here is my current code:
\begin{figure}[!ht]
    \begin{subfigure}[t][1\width]{0.3\textwidth}
        \centering\vspace{0pt}
        \includegraphics[width=\textwidth]{content/indoor/convex_space}
        \caption{Convex Spaces}
        \label{fig:convex_space}
    \end{subfigure}
    ~
    \begin{subfigure}[t][1\width]{0.3\textwidth}
        \centering\vspace{0pt}
        \includegraphics[width=\textwidth]{content/indoor/axial_line}
        \caption{Axial Map}
        \label{fig:axial_line}
    \end{subfigure}
    ~
    \begin{subfigure}[t][1\width]{0.3\textwidth}
        \centering\vspace{0pt}
        \includegraphics[width=\textwidth]{content/indoor/intersection_graph}
        \caption{Intersection graph}
        \label{fig:intersection_graph}
    \end{subfigure}
    \caption{Examples of some spatial analysis technique\cite{dawes2013}}
    \label{fig:scene_walls_3d}
\end{figure}

No comments:

Post a Comment