# Using minipage to display two figures/table side-by-side in Latex

In the following example, ‘figure1’ and ‘figure2’ are being displayed side-by-side. One can also specify not only tables but also any other environment inside the minipage.

\begin{figure}[h!]
\begin{minipage}[b]{0.4\linewidth}
\includegraphics{img/figure1}
\caption{Figure 1}
\end{minipage}
\begin{minipage}[b]{0.4\linewidth}
\includegraphics{img/figure2}
\caption{Figure 2}
\end{minipage}
\end{figure}


One observation though: Do not skip a line between minipages. Otherwise, it will place the figures one below the other.