## LaTeX forum ⇒ Graphics, Figures & Tables ⇒ Problem with rotating an image. Topic is solved

Information and discussion about graphics, figures & tables in LaTeX documents.
lukaszskowron96
Posts: 36
Joined: Tue Oct 09, 2018 1:01 pm

### Problem with rotating an image.

Hi, so I rotated my image using this code:

\begin{figure}[H]\begin{adjustbox}{addcode={\begin{minipage}{\width}}{\caption{Rough interface}\end{minipage}},rotate=90,center}\includegraphics[scale=0.65]{RoughH}\end{adjustbox}\end{figure}

I want my figure to be an a separete page, making full use of the space available. However, the figure seems to start a third along the page and is therefore cut (see the image below). How can I center the image on center of the page?

A rotated figure.
latexforumrotatedimage.png (46.89 KiB) Viewed 682 times

Thanks for the help.

mas
Posts: 219
Joined: Thu Dec 04, 2008 4:39 am
Please give the complete code so that compiling will be easier. The image should also be included/attached.

You can use the lscape package to get the desired result.

\documentclass{article}                                                                       %                                                                                             \usepackage{graphicx}                                                                         \usepackage{lscape}                                                                            \begin{document}                                                                               \begin{landscape}                                                                             \begin{figure}[h]                                                                               \centering                                                                                    \includegraphics[scale=1.5]{example-image-b}                                                    \caption{Rotated image.}                                                                   \end{figure}                                                                                  \end{landscape}                                                                                \end{document}

xx.png (5.94 KiB) Viewed 674 times

OS: Debian/GNU Linux; LaTeX System : TeXLive; Editor : Vim

lukaszskowron96
Posts: 36
Joined: Tue Oct 09, 2018 1:01 pm
Thanks, it works!