I am trying to create a figure made of 7 subfigures, whose layout is:
3 subfigures on the first and second row (left aligned, centered and right aligned)
and one subfigure on the third row (left aligned).
The code I wrote is:
\begin{figure}[h]
\begin{subfigure}[t!]{0.4 \textwidth}
\includegraphics[scale=0.25]{./capitoli/4/immagini/a_1.png}
\end{subfigure}
\begin{subfigure}[t!]{0.4 \textwidth}
\includegraphics[scale=0.23]{./capitoli/4/immagini/a_2.png}
\end{subfigure}
\begin{subfigure}[t!]{0.2 \textwidth}
\includegraphics[scale=0.24]{./capitoli/4/immagini/a_3.png}
\end{subfigure}
\begin{subfigure}[c!]{0.25 \textwidth}
\includegraphics[scale=0.35]{./capitoli/4/immagini/a_4.png}
\end{subfigure}
\begin{subfigure}[c!]{0.2 \textwidth}
\includegraphics[scale=0.35]{./capitoli/4/immagini/a_5.png}
\end{subfigure}
\begin{subfigure}[c!]{0.2 \textwidth}
\includegraphics[scale=0.35]{./capitoli/4/immagini/a_6.png}
\end{subfigure}
\begin{subfigure}[b!]{0.2 \textwidth}
\includegraphics[scale=0.35]{./capitoli/4/immagini/a_7.png}
\end{subfigure}
\end{figure}
But it prints two subfigures on the first row and then one left-aligned subfigure for five rows.
Any tips to solve this issue?
subfloatrow
s environments, from packagefloatrow
.\hfill
s.