# How to remove the vertical space between two images latex

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!

-

## migrated from stackoverflow.comApr 30 '13 at 15:27

This question came from our site for professional and enthusiast programmers.

Please read the answers to tex.stackexchange.com/q/39017/5763 for why [H] is normally a bad idea. – Martin Schröder May 1 '13 at 16:02

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:

-
It works perfectly! Thank you for your suggestions as well! – Enrico Ribelli Apr 30 '13 at 13:53