I am trying to place two figures from .pgf file input side-by-side. I want them to have independent captions (so no subfigures). I have tried using the minipage way as follows:
\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, like the attached picture. Tried using \scalebox{0.6} before \input the pgf but still the same behavior.. I have tried many different combinations and I can't find a way to make this work...
EDIT: This is not a duplicate. I am importing .pgf files. My latex code is identical to the above answer but it doesn't work. pgf files are here if someone needs to test.

\documentclassand ends with\end{document}. As well as the code that generates the.pgffiles – AndréC Feb 10 '19 at 05:20\input. – Zarko Feb 10 '19 at 06:27llncsclass? Try using another class as the nativearticleclass. Likewise many packages are not necessary. Please provide a minimum complete example (MWE). Also, is it important that the images are.pgfextended? Does the problem arise with.pngimages?.eps? etc – AndréC Feb 10 '19 at 06:27\documentclass{...}and ending with\end{document}and example of your pgf images (unfortunately i haven't any pgf image on my system). – Zarko Feb 10 '19 at 06:58