# How to put two figures side by side in a two-column document

How to put two figures side by side in a two-column document. figure* is not working.

-
Related: Two figures side by side, Place figures side by side, spill into outer margin. Try the solutions there and replace figure with figure* for a two-column document. –  Martin Scharrer Apr 28 '11 at 17:50

I used subfigure package:

\begin{figure*}[htp]
\centering
\subfigure[random caption 2]{\includegraphics[scale=0.38]{image2}}
\end{figure*}

Worked flawlessly :)

-
The subfigure package is the way to go if both are subfigure from one figure, i.e. a) and b) and should be labeled as such. However often two different, independent figures should be set side-by-side because of place limitations. Then your method doesn't work. You should prefer width for scale. I would also use \hfill instead of \quad to spread the two figure over the text width. –  Martin Scharrer Apr 28 '11 at 17:46
That's true, but it does the job :) And I agree \hfill align the pictures better... –  dingo_d Apr 28 '11 at 17:51
Not for me. The scaling has to be adjusted for each image and the horizontal alignment is not correct. I'm sorry, I just to pedantic in such things :-) –  Martin Scharrer Apr 28 '11 at 17:57
The subfigure package is obsolete. One of its successors is subfig. –  Thorsten Donig Apr 28 '11 at 17:58

This should do:

\begin{figure*}
\centering
\begin{minipage}[b]{.4\textwidth}
<Code for the first figure>
\caption{Caption}\label{label-a}