Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Different size of figure...Why?

1 view
Skip to first unread message

Philipp

unread,
Nov 24, 2008, 5:31:24 PM11/24/08
to
Hi

I have a very annoying problem. I have two figures that I wanna include
in my Latex File. There are pdfs and have excactly the same size when I
open them alone in the acroreader. However, when I include them with the
commands below they completley look of different size (different height,
the second one is 1/4 higher)... Anyone an idea what I could have done wrong


\begin{figure}
\begin{minipage}[b]{0.49\linewidth}
\centering
\includegraphics[width=6cm]{figure1}
\caption{This shows figure one of two figures with the same size}
\label{fig:fig1}
\end{minipage}
%\hspace{0.2cm}
\hfill
\begin{minipage}[b]{0.49\linewidth}
\centering
\includegraphics[width=6cm]{figure2}
\caption{This shows figure two of two figures with the same size}
\label{fig:fig2}
\end{minipage}
\end{figure}

many thanks,
Philipp

Christian Stapfer

unread,
Nov 25, 2008, 1:22:53 AM11/25/08
to
"Philipp" <Phi...@gmx.at> schrieb im Newsbeitrag
news:ggf9vs$f4h$1...@aioe.org...

> Hi
>
> I have a very annoying problem. I have two figures that I wanna include in
> my Latex File. There are pdfs and have excactly the same size when I open
> them alone in the acroreader.
AcroReader does some automatic size adjustments like fit to width or
fit to page, thus just to compare the *appearance* of the two figures in
AcroReader may be somewhat problematic.
Instead, you need to compare the exact page sizes of the two images as
specified in the document properties dialog of AcroReader.

> However, when I include them with the
> commands below they completley look of different size (different height,
> the second one is 1/4 higher)...

I suppose this means that the two images have different aspect ratios
height / width.

>Anyone an idea what I could have done wrong

Since the two images have (presumably) different aspect ratios,
you cannot expect them to have the same width *and* the same height
(except if you are willing to change their aspect ratios). But perhaps for
your application it is more desirable to force them to have the same
height (instead of having the same width).


>
>
> \begin{figure}
> \begin{minipage}[b]{0.49\linewidth}
> \centering
> \includegraphics[width=6cm]{figure1}

Try \includegraphics[height=6cm]{figure1} instead

> \caption{This shows figure one of two figures with the same size}
> \label{fig:fig1}
> \end{minipage}
> %\hspace{0.2cm}
> \hfill
> \begin{minipage}[b]{0.49\linewidth}
> \centering
> \includegraphics[width=6cm]{figure2}

Try \includegraphics[height=6cm]{figure2} instead.
then the two figures should have at least the same height.

0 new messages