I have the following problem trying to align two figures horizontally within the same figure environment. The right image is always put lower than the left image. Here is my code:
\begin{figure}
\begin{subfigure}[b]{0.5\textwidth}
\includegraphics[scale=0.5]{plots/dipfdbs_componentSizeComponentCount.pdf}
\end{subfigure}
\begin{subfigure}[a]{0.5\textwidth}
\includegraphics[scale=0.5]{plots/dipfdbs_averageDegree.pdf}
\end{subfigure}
\caption{Degree distribution and component sizes of dipfdbs recommendation graph.}
\label{fig:dipfdbsgraphplots}
\end{figure}
And here is how it looks like in rendered pdf:

Any help would be greatly appreciated.

aandbwould appear in subcaptions. – lhf Jul 20 '12 at 13:38