I'm trying to insert 4, in a 2 by 2 sort of matrix with this code
\begin{figure}[H] \centering
\includegraphics[width=0.48\textwidth, keepaspectratio]{figure/s0}
\hspace{2mm}
\includegraphics[width=0.48\textwidth, keepaspectratio]{figure/s1}
\hfill
\includegraphics[width=0.48\textwidth, keepaspectratio]{figure/s2}
\hspace{2mm}
\includegraphics[width=0.48\textwidth, keepaspectratio]{figure/s3}
\hfill
\end{figure}
I made these images with Photoshop with dimension 400x250px. Why are not correctly aligned? Is it a code's problem? Because I checked with Photoshop and all of them have the same dimensions.


\hfill. Replace it by\\or put the images in atabular. – Jun 25 '18 at 15:15\hfilland I never saw this problem. Thanks – Shika93 Jun 25 '18 at 15:32