# Sideways Figure alignment and \afterpage

I am trying to place a full landscape page size sideways figure which should come before another tiny figure within the same section. I have used following code and I could get the order and style that I liked, however now the alignment of the sideways figure is off as shown in the figure.

    \afterpage{
\begin{sidewaysfigure} [hbt!]
\centering
\rule{\textwidth}{\textheight}
\includegraphics[width=1\textwidth, height=0.4\textheight]{figuresc/Energy-EU-Sankey}
\caption{Energy flow of European Union}
\label{Figure 1.1}
\end{sidewaysfigure}
\clearpage
}


• Since sidewaysfigure is a float, you don't need \afterpage, just use [p]. – John Kormylo Oct 10 '18 at 3:03

    \afterpage{