# Landscape figure in LaTeX

I have a figure I'm trying to insert which is in landscape and I'm using the following (snipped) code:

\documentclass[12pt, oneside]{book}
\usepackage{graphicx}
\usepackage{wrapfig}
\usepackage{lscape}
\usepackage{rotating}
\usepackage{epstopdf}

\begin{document}

\begin{figure}[ht]
\includegraphics{../figures/pics/DivLibPropProfile}
\caption{Property profile of the diverse library compared to the compound pool.}
\label{fig:PropProf}
\end{figure}

\end{document}


When I compile this with pdfLaTeX the output behaves as I'd expect – page in portrait with the caption at the bottom but the figure in the "wrong" orientation.

However when I compile using LaTeX, the page is turned landscape with the figure now in the correct orientation but with the caption at what is now the left of the page rather than under the figure, which you should get using \begin{landscape}.

When I do use the landscape environment and compile with LaTeX the caption the whole page is turned upside-down and everything is wrong.

Any ideas how I can get the correct orientation of landscape figure on landscape page with the caption under the figure (attached for reference)? I also need to use LaTeX rather that pdfLaTeX for another package to function.

-

Check this:

\documentclass[12pt, oneside]{book}
\usepackage{graphicx}
\usepackage{wrapfig}
\usepackage{lscape}
\usepackage{rotating}
\usepackage{epstopdf}

\begin{document}

\begin{sidewaysfigure}[ht]
\includegraphics{../figures/pics/DivLibPropProfile}
\caption{Property profile of the diverse library compared to the compound pool.}
\label{fig:PropProf}
\end{sidewaysfigure}

\end{document}

-
Could you please include an explanation of that code? –  N.N. Mar 30 '12 at 10:55
read the docs of the rotating package: it makes whole-page floats that are rotated by +/- 90 degrees; the caption rotates with the figure. –  wasteofspace Mar 30 '12 at 16:11
I agree. The rotating package is really the solution people ought to use for landscaped figures and tables. –  gregmacfarlane Apr 17 '13 at 14:14
Thank you, this sidewaysfigure rocks! –  gd1 Oct 3 '13 at 10:23

You can use the angle=90 option provided by graphicx package.

\documentclass[12pt, oneside]{book}
\usepackage{wrapfig}
\usepackage{lscape}
\usepackage{rotating}
\usepackage{epstopdf}
\begin{document}
\begin{figure}[ht]
\centering
\includegraphics[angle=90]{../figures/pics/DivLibPropProfile}%<---angle here
\caption{Property profile of the diverse library compared to the compound pool.}
\label{fig:PropProf}
\end{figure}

\begin{figure}[ht]
\centering
\includegraphics[angle=0]{../figures/pics/DivLibPropProfile}
\caption{Property profile of the diverse library compared to the compound pool - not rotated.}
\label{fig:PropProf}
\end{figure}
\end{document}


-