Subfigure has space in the center

I have a subfigure in my tex document:

\begin{figure}[!htp]
\centering
\begin{subfigmatrix}{2}
\subfigure{
\includegraphics[width=0.4\textwidth]{img/phi_env_0.pdf}}
\subfigure{
\includegraphics[width=0.4\textwidth]{img/Wannier_R=-5.pdf}}
\subfigure[Bloch function with $k = 1.54$]{
\includegraphics[width=0.4\textwidth]{img/phi_env_1.pdf}}
\subfigure{
\includegraphics[width=0.4\textwidth]{img/Wannier_R=-1.pdf}}
\subfigure{
\includegraphics[width=0.4\textwidth]{img/phi_env_2.pdf}}
\subfigure{
\includegraphics[width=0.4\textwidth]{img/Wannier_R=3.pdf}}
\end{subfigmatrix}
\caption{Baseline accuracy (several classifiers and number of observations).}
\label{fig:bloch_wannier}
\end{figure}


As you can see this leaves a big gap in the middle. I would like this gap to disappear an then the column to be centered. How do I do this?

• I think that this link you could be help. tex.stackexchange.com/questions/335167/… – Sebastiano Mar 1 '17 at 11:45
• Which package defines subfigmatrix? – Torbjørn T. Mar 1 '17 at 12:04
• @TorbjørnT. - The package is called subfigmat – Arash Esbati Mar 1 '17 at 12:24
• You could replace the \subfigurematrix with a tabular. The subcaptions (text only) would go in their own lines. – John Kormylo Mar 1 '17 at 14:46
• subfigmat package is buggy: (i) documentation is rather poor and misleading (\setlength{\sfmcolsep}{\hspace{0.2in}} cannot work), (ii) distance between figures are hard coded and can't be changed (regardless that documentation claim differently). better is used one of solutions from link of Sebastiano comment or consider John Kormylo advice. – Zarko Mar 1 '17 at 15:24