I am trying to place multiple subfigures into 3 columns. I have large no. of figures to display. Naturally, keeping the figures visible for readers in an article, I am trying to fit 9 or 12 figures in a page. But using subfigures, the figures are entering footer zone and in the margin area. How to overcome this such that it does not happen. Suggest a way to arrange the figures such that they are presented beautifully throughout multiple pages.
My Code is given below:
(for 12 images) The float, subcaption, caption, graphicx all the packages are there in preamble.
\begin{figure}[H]
\centering
\begin{subfigure}{0.3\textwidth}
\centering
\includegraphics[height=1.8in]{images/bfly-primary/2.png}
\caption{2 by 2}
\end{subfigure}
\hfill
\begin{subfigure}{0.3\textwidth}
\centering
\includegraphics[height=1.8in]{images/bfly-primary/3.png}
\caption{3 by 3}
\end{subfigure}
\hfill
\begin{subfigure}{0.3\textwidth}
\centering
\includegraphics[height=1.8in]{images/bfly-primary/4.png}
\caption{4 by 4}
\end{subfigure}
\begin{subfigure}{0.3\textwidth}
\centering
\includegraphics[height=1.8in]{images/bfly-primary/5.png}
\caption{5 by 5}
\end{subfigure}
\hfill
\begin{subfigure}{0.3\textwidth}
\centering
\includegraphics[height=1.8in]{images/bfly-primary/6.png}
\caption{6 by 6}
\end{subfigure}
\hfill
\begin{subfigure}{0.3\textwidth}
\centering
\includegraphics[height=1.8in]{images/bfly-primary/7.png}
\caption{7 by 7}
\end{subfigure}
\begin{subfigure}{0.3\textwidth}
\centering
\includegraphics[height=1.8in]{images/bfly-primary/8.png}
\caption{8 by 8}
\end{subfigure}
\hfill
\begin{subfigure}{0.3\textwidth}
\centering
\includegraphics[height=1.8in]{images/bfly-primary/9.png}
\caption{9 by 9}
\end{subfigure}
\hfill
\begin{subfigure}{0.3\textwidth}
\centering
\includegraphics[height=1.8in]{images/bfly-primary/10.png}
\caption{10 by 10}
\end{subfigure}
\begin{subfigure}[hb]{0.3\textwidth}
\centering
\includegraphics[height=1.8in]{images/bfly-primary/11.png}
\caption{11 by 11}
\end{subfigure}
\hfill
\begin{subfigure}[hb]{0.3\textwidth}
\centering
\includegraphics[height=1.8in]{images/bfly-primary/12.png}
\caption{12 by 12}
\end{subfigure}
\hfill
\begin{subfigure}[hb]{0.3\textwidth}
\centering
\includegraphics[height=1.8in]{images/bfly-primary/15p.png}
\caption{15 by 15}
\end{subfigure}
\begin{subfigure}[t]{0.3\textwidth}
\centering
\includegraphics[height=1.8in]{images/bfly-primary/20p.png}
\caption{20 by 20}
\end{subfigure}
\hfill
\begin{subfigure}[t]{0.3\textwidth}
\centering
\includegraphics[height=1.8in]{images/bfly-primary/25p.png}
\caption{25 by 25}
\end{subfigure}
\hfill
\begin{subfigure}[t]{0.3\textwidth}
\centering
\includegraphics[height=1.8in]{images/bfly-primary/30p.png}
\caption{30 by 30}
\end{subfigure}
\end{figure}


example-imagein place of1.pngetc. (If necessary, you can specify both the width and height since it doesn't matter if the example image gets distorted.) – cfr Jun 29 '23 at 05:28\centeringdirectives to anything useful. Delete them. – Mico Jun 29 '23 at 05:28