I am very inexperienced with latex so I am sorry in advance. I have 7 figures with a big width so I decided to put them in a landscape mode, two on a page. What I tried until now is this

\begin{sidewaysfigure}
\begin{subfigure}{0.9\hsize}\centering
    \includegraphics[width = \textwidth]{./figures/feature_importance/TT.pdf}
\caption{Sub figure A}
    \label{fig:sub1}
\end{subfigure}
\begin{subfigure}{0.9\hsize}\centering
    \includegraphics[width = \textwidth]{./figures/feature_importance/DT.pdf}
\caption{Sub figure B}
    \label{fig:sub2}
\end{subfigure}
\caption{Figure in landscape orientation}
    \label{fig:sub2}
\end{sidewaysfigure}

But is giving me a huge gap between the two figures

enter image description here

How can I make it look better and remove this gap? I want them to look something like this:

enter image description here

  • 2
    Welcome to TeX - LaTeX! Most likely this white space in your graphics file. You can also specify a height option to \includegraphics, and you can allow clipping. – Andrew Swann Nov 9 at 12:15
  • Welcome to TeX.SE. Please tell us which document class you employ. And, do you load any packages that modify the dimensions of the text block and the margins? – Mico Nov 9 at 12:15
  • Hello, and thank you for the quick response, yes there was some space but still cannot adjust them well TT. Do you have any suggestions I am trying to set them as big as the text width and text height size but still looks bad – Sim Nov 9 at 12:46
  • I do not get that effect, using article class and only the rotatimg package. Anyway, you can add glue using \vspace*{\fill} above, below and between the subfigures. You might also consider using pdflscape and afterpage instead of rotating. See tex.stackexchange.com/questions/262119/… – John Kormylo Nov 9 at 16:09

Your Answer

 

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.