# Figure of subfigures with different heights

I have a figure with two eps subfigures, I am using the subfigure package, the problem is that those figures have different heights, is the there a way to display them both with the same height?

\begin{figure}[htb]
\centering
\subfigure[Expanding]
{\includegraphics[scale =0.4]{./figs/figure1.eps}}
\subfigure[Retracting]
{\includegraphics[scale =0.4]{./figs/figure1.eps}}
\caption{Expanding and retracting trajectories}
\end{figure}

-
In the optional argument to \includegraphics, specify height=<xx>cm instead of scale... –  benwilfut Mar 18 '13 at 10:21
–  Claudio Fiandrino Mar 18 '13 at 10:43
Note: the subfigure package is deprecated. Use the subcaption package instead. –  Jubobs Mar 18 '13 at 12:28
Thanks for the suggestions I'll try them –  Dan Mar 19 '13 at 9:19

As mentioned in a comment, you can alter the size of a graphic not only in a relative (scale) way but also by setting an absolute height or width

\begin{figure}[htb]
\centering
\subfigure[Expanding]
{\includegraphics[height = 5 cm]{./figs/figure1}}
\subfigure[Retracting]
{\includegraphics[height = 5 cm]{./figs/figure1}}
\caption{Expanding and retracting trajectories}
\end{figure}


Scaling maintains the aspect ratio of the graphic, so you don't need to worry about the widths here.

-