Graphics, Figures & TablesProblem with rotating an image.

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

Problem with rotating an image.

Post by lukaszskowron96 »

Hi, so I rotated my image using this code:

Code: Select all

\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.
A rotated figure.
latexforumrotatedimage.png (46.89 KiB) Viewed 12224 times
Thanks for the help.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

mas
Posts: 226
Joined: Thu Dec 04, 2008 4:39 am

Problem with rotating an image.

Post by mas »

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.

Code: Select all

\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
xx.png (5.94 KiB) Viewed 12216 times

OS: Debian/GNU Linux; LaTeX System : TeXLive; Editor : Vim
lukaszskowron96
Posts: 36
Joined: Tue Oct 09, 2018 1:01 pm

Problem with rotating an image.

Post by lukaszskowron96 »

Thanks, it works!
Post Reply