[Tex/LaTex] How to remove the vertical space between two images latex

floatsgraphics

I know this topic is allready discussed but I still don't manage to solve this problem. I have 2 pictures in my document. I would like to delete the white vertical space between them. I found something about floatsep but it seems not work. I just have 2 simple images:

\begin{figure}[H]
\centering
\includegraphics[scale=0.37]{Cube.png}
\end{figure}

\begin{figure}[H]
\centering
\includegraphics[scale=0.37]{Cog.png}
\end{figure}

What do I have to add to solve this problem? And where I have to do it? Thank you!

Best Answer

You can combine the contents of the separate figure environments into one:

\begin{figure}[htb]
  \centering
  \includegraphics[scale=0.37]{Cube.png}

  \vspace{<whatever>}

  \includegraphics[scale=0.37]{Cog.png}
\end{figure}

Now you can supply a space of <whatever> to adequately separate the images. If you don't want any space, just remove the \vspace command but keep an empty line between the two included images. Some suggestions:

Related Question