# Combining two plots vertically in LaTeX

Hi professor,

I am wondering how to combine two plots vertically in Latex, so that there is no extra space between them?
as you can see, now there is some extra space between two plots, and I tried "\vspace{-number} ", without any effect.

Hi professor,

I am wondering how to combine two plots vertically in Latex, so that there is no extra space between them?
as you can see, now there is some extra space between two plots, and I tried "\vspace{-number} ", without any effect.

The code I am currently using is:

\begin{figure}
\includegraphics[width=23cm, height=12.2cm]{avs1}
\includegraphics[width=23cm, height=12.2cm]{avs2}
\end{figure}

what I want is to reduce the space between the top 3 rows and the rest, so that the space will be evenly distributed between rows as if they were one plot.

Have you tried doing a linebreak before using vspace?

\begin{figure}
\includegraphics[width=23cm, height=12.2cm]{avs1}\\
\vspace{-0.5cm}
\includegraphics[width=23cm, height=12.2cm]{avs2}
\end{figure}


Currrently your two figures are supposed to be in the same line.