# [texhax] two figures side by side

Reinhard Kotucha reinhard.kotucha at web.de
Fri Jan 27 23:20:34 CET 2012

On 2012-01-27 at 11:23:19 -0500, Victor Ivrii wrote:

> On Fri, Jan 27, 2012 at 11:11 AM, Veerappa Chetty <chettyvk at gmail.com> wrote:
> > Hi,
> > I like to place the following two figures side by side instead of one below
> > the other. How do I do that?
> > Thanks.
> > ____
>
> \usepackage{subfig}
>  \begin{figure}[ht]
>  \centering
> \subfloat[My First Figure]{\label{myfigure-A}
> \includegraphics[width=6cm,height=8cm]{c:/chetty/Dropbox/R21/Figure1.png}
> }
> \subfloat[My Second Figure]{\label{myfigure2}
> \includegraphics[width=6cm,height=8cm]{c:/chetty/Dropbox/R21/Figure1.png}
> }
> \caption{\label{figure-1} These two Figures represent blah blah}
>  \end{figure}
>
>
> Note: Your figures (each 12cm) are too wide to fit side by side for
> A4 or letter

It's also not a good idea to specify a width and a height at the same
time.  This has an impact on the aspect ratio of the graphic.  It's
better to specify the width only, relative to \textwidth:

\includegraphics[width=0.45\textwidth]{...}

Regards,
Reinhard

--
----------------------------------------------------------------------------
Reinhard Kotucha                                      Phone: +49-511-3373112
Marschnerstr. 25
D-30167 Hannover                              mailto:reinhard.kotucha at web.de
----------------------------------------------------------------------------
Microsoft isn't the answer. Microsoft is the question, and the answer is NO.
----------------------------------------------------------------------------