# Scaling of landscape figures (images)

I'm trying to insert a landscape figure, which I want to scale down. I'm currently using:

\begin{figure*}[tb]
\centering
\includegraphics[width=\textwidth,height=\textheight,keepaspectratio]{fig/proposed.pdf}%
\caption{The SAP data model based on an UML class diagram: classes and relationships.}
\label{fig:Fig5}
\end{figure*}


This creates the figure and includes the graphic, however, the image is really big and goes out of bounds in the document.

-
My guess is that you should either use the width parameter or the height parameter in combination with the keepaspectratio option. Could you try that and report back please? –  Bart Arondson Mar 28 at 14:25
@BartArondson Do you mean physically setting the width and height? –  user1326876 Mar 28 at 14:26
No, I mean something like: \includegraphics[width=\textwidth,keepaspectratio]{fig/proposed.pdf}. –  Bart Arondson Mar 28 at 14:27
@BartArondson keepaspectratio only does anything if you specify both width and height –  David Carlisle Mar 28 at 14:50
@user1326876 you should always include a complete document that shows the problem. It is impossible to tell from your fragment how you got landscape but it may be that you have \texheight and or \textwidth wrong (your rotation macro has changed them, oor you used lscape which changes textheight but not textwidth (use \columnwidth in that case) –  David Carlisle Mar 28 at 14:52