[Tex/LaTex] Figure on the same page as appendix section in landscape mode

appendicesfloatslandscape

I have a bunch of figures placed at the end of my document in a landscape mode. I would like to put all these figures under an appendix section called "Figures". I used the following code to accomplish this. This code produces a blank page with the section heading "A Figures" and figures start from the next page. I want the first figure to start from the page with the section heading "A Figures". Could anybody please help? Thanks in advance.

\appendix
\counterwithin{figure}{section}
\centering

\section{Figures}

 \begin{landscape}
    \begin{figure}
    \includegraphics[scale=.4]{Jun_99_Sep00_symmetric}
    \caption{5 Historical periods}
    \label{fig:6sym99rec}
    \end{figure} 
 \end{landscape}

 \begin{landscape}
    \begin{figure}
    \includegraphics[scale=.4]{Jun99_Sep00_asymmetric_open_false}
    \caption{2 Historical periods}
    \label{fig:6asym99rec}
    \end{figure} 
 \end{landscape}
\end{document}

Best Answer

landscape always starts and ends with a new page (it executes \clearpage at the start and end of the environment), you could instead use sidewaysfigure from the rotating package or just normal figure and just rotate the image with

\rotatebox{90}{\includegraphics{...}}