I have a figure made up of two subfigures but there is a slight vertical offset between the two. Here's the code:
\begin{figure}[h!]
\centering
\begin{subfigure}{0.49\textwidth}
\includegraphics[width=\textwidth]{black body.png}
\caption{Theortical intensity of a black body white light source according to equation~\ref{eq:black body}}
\label{fig:black body}
\end{subfigure}
\begin{subfigure}{0.49\textwidth}
\includegraphics[width=\textwidth]{black body plus response.png}
\caption{white light source measured with system repsonse }
\label{fig:black body plus response}
\end{subfigure}
\caption[Black body measurement]{Intensity of a perfect black body measured in a system with an equal response over all wavelengths}\label{fig:black body comparison}
\end{figure}
Here's how it looks in the pdf:
It also offsets if I change both of the subfigures to the same figure so it isn't a problem with one of the images having more space or something.
Anyone have any ideas?
Thanks a lot
\documentclass{...}
and ending with\end{document}
.figure*
environmentfloatrow
provides support for this by default - vertically aligned captions for sub-floats.