我有很多图要放入 Latex 文档中。我在一个图中绘制多个图。我想减少不同图之间的间距。此外,如果图大于页面下方的可用空间,我希望它们可以自行排列到多个页面上。
我正在使用以下代码:
\begin{figure}[h!]
\vspace*{-0.8cm}
\hspace{-0.3cm}
\centering % <-- added
\begin{subfigure}{0.49\textwidth}
\includegraphics[width=\linewidth]{"Plots maxVg time/D_12-09, batch_1, d_350, T_180, XV_150, I_100-500, C_2MaxVG vs Time".png}
\caption{Batch:1, die:350-Ta, Max\(V_{G}\) vs time, XV:150}
\label{fig: Batch:1, die:350-Ta, MaxVG vs time, XV:150}
\end{subfigure}\hfil % <-- added
\begin{subfigure}{0.49\textwidth}
\includegraphics[width=\linewidth]{"Plots maxVg time/D_12-09, batch_1, d_350, T_180, XV_40, I_100-500, C_2MaxVG vs Time".png}
\caption{Batch:1, die:350-Ta, Max\(V_{G}\) vs time, XV:40 T:300}
\label{fig: Batch:1, die:350-Ta, MaxVG vs time, XV:40 T:300}
\end{subfigure}\hfil % <-- added
\medskip
\begin{subfigure}{0.49\textwidth}
\includegraphics[width=\linewidth]{"Plots maxVg time/D_13-09, batch_1, d_350, T_180, XV_40, I_100-500, C_2MaxVG vs Time".png}
\caption{Batch:1, die:350-Ta, Max\(V_{G}\) vs time, XV:40 T:180}
\label{fig:Batch:1, die:350-Ta, MaxVG vs time, XV:40 T:180}
\end{subfigure}
\begin{subfigure}{0.49\textwidth}
\includegraphics[width=\linewidth]{"Plots maxVg time/D_13-09, batch_3, d_250, T_300, XV_150, I_100-500, C_2MaxVG vs Time".png}
\caption{Batch:3, die:250-SiTa, Max\(V_{G}\) vs time XV:150}
\label{fig:Batch:3, die:250-SiTa, MaxVG vs time XV:150}
\end{subfigure}\hfil % <-- added
\medskip
\begin{subfigure}{0.49\textwidth}
\includegraphics[width=\linewidth]{"Plots maxVg time/D_13-09, batch_3, d_250, T_300, XV_40, I_100-500, C_2, N_no-time-recordingMaxVG vs Time".png}
\caption{Batch:3, die:250-SiTa, Max\(V_{G}\) vs time XV:40}
\label{fig:Batch:3, die:250-SiTa, MaxVG vs time XV:40}
\end{subfigure}\hfil % <-- added
\begin{subfigure}{0.49\textwidth}
\includegraphics[width=\linewidth]{"Plots maxVg time/D_13-09, batch_4, d_250, T_180, XV_40, I_100-500, C_2MaxVG vs Time".png}
\caption{Batch:4, die:250-TaSi, Max\(V_{G}\) vs time XV:40}
\label{fig:Batch:4, die:250-TaSi, MaxVG vs time XV:40}
\end{subfigure}
\caption{Max\(V_{G}\) vs time for different samples}
\label{fig: MaxVG vs time }
\end{figure}
\FloatBarrier