\documentclass{article} \usepackage{pgf} \begin{document} Some words.. \begin{figure} \begin{minipage}[t]{0.5\linewidth} \centering \input{figure1.pgf} \label{Figure1} \caption{This is caption for Figure 1.} \end{minipage} \end{figure} \begin{figure} \begin{minipage}[t]{0.5\linewidth} \centering \input{figure2.pgf} \label{Figure2} \caption{This is caption for Figure 2.} \end{minipage} \end{figure} \end{document}
But instead of getting them side by side, I get them one below the other... I have tried many different combinations and I can't find a way to make this work... pgf files are here https://a.uguu.se/DPFft8cqVVmz_code.7z if someone needs to test. Thank you