I use the code
\begin{figure}[ht]
\begin{center}
\subfig{\label{dfg}\includegraphics[width=1\textwidth]{figures/2dcontour}} [Figure (A)]
\subfig{\label{dfg}\includegraphics[width=\textwidth]{figures/3dcontour}} [Figure (A)]
\end{center}
\caption{}
\label{fig:subfigureExample}
\end{figure}
But it never gives me side by side figures, only in case I make the figures very small let's say scale=0.1, they become beside each other.
I have looked many online webs about this but they don't do anything different, and I do not know why it does not work for me.
Worth mentioning that subfigure did not work for me and that is why I have used subfig.
\textwidth. That means one figure fills the complete textwidth your document have. Therefore the figures can only be one after the other. Try for both figures something likewidth=.48\textwidth(that leaves a little place for a space between the images if needed). Because you gave no compilable MWE you have to try this yourself, sorry ... So write\includegraphics[width=0.48\textwidth]{figures/2dcontour}for your first image ... – Mensch Jun 22 '16 at 01:43