Here is an example of a TeX code I use:
\begin{figure}[h]
\centering
\begin{minipage}[b]{0.49\textwidth}
\includegraphics[width=\textwidth]{a}
\caption{some caption}
\end{minipage}
\begin{minipage}[b]{0.49\textwidth}
\includegraphics[width=\textwidth]{b}
\caption{some caption}
\end{minipage}
%\vspace{}
\centering
\begin{minipage}[b]{0.49\textwidth}
\includegraphics[width=\textwidth]{c}
\caption{some caption}
\end{minipage}
\begin{minipage}[b]{0.49\textwidth}
\includegraphics[width=\textwidth]{d}
\caption{some caption}
\end{minipage}
\end{figure}
\begin{figure}[h]
\centering
\includegraphics[scale=0.5]{e}
\caption{some caption}
\end{figure}
The last figure is always moved to a new page, why is that the case and how do I make it stay on the same page as the above?
\includegraphics[scale=0.5]{e} \caption{some caption}
into the firstfigure
environment.