Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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}
share|improve this question
3  
In the optional argument to \includegraphics, specify height=<xx>cm instead of scale... –  benwilfut Mar 18 '13 at 10:21
    
Welcome to TeX.SX. –  Claudio Fiandrino Mar 18 '13 at 10:43
1  
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
add comment

1 Answer

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.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.