
4개의 플롯(모두 동일한 크기의 PDF)이 동일한 간격으로 표시되도록 하려면 어떻게 해야 합니까? 여기에서 오프셋이 표시되는지 확인하십시오.
% 실제 대 예측 플롯
\begin{figure}[H]
\begin{minipage}[b]{0.45\linewidth}
\centering
\includegraphics[width=\textwidth]{figs/immediate_formula_s_avp.pdf}
\hspace{0.1cm}
\end{minipage}
\begin{minipage}[b]{0.45\linewidth}
\centering
\includegraphics[width=\textwidth]{figs/immediate_formula_s_avp.pdf}
\end{minipage}
\begin{minipage}[b]{0.45\linewidth}
\centering
\includegraphics[width=\textwidth]{figs/immediate_formula_s_avp.pdf}
\hspace{0.1cm}
\end{minipage}
\begin{minipage}[b]{0.45\linewidth}
\centering
\includegraphics[width=\textwidth]{figs/immediate_formula_s_avp.pdf}
\end{minipage}
\caption{Actual Versus Predicted Plots}\label{multiavp}
\end{figure}
답변1
귀하의 코드를 가져와 모든 문을 제거하는 등 몇 가지 수정 작업을 수행했습니다 . (i) 첫 번째와 두 번째, 세 번째와 네 번째 사이에 지시문을 사용하고 (ii) 너비를 설정하는 \centering
경우에는 필요하지 않습니다. 각 내부의 그래프는 . 덧붙여서, 나는 매개 변수를 사용하여 환경 의 폭 과 측정을 위한 (또는 그 일부)을 지정합니다.\hspace{\fill}
minipage
minipage
\linewidth
\textwidth
minipage
\linewidth
내부에환경 minipage
.
\documentclass{article}
\usepackage[demo]{graphicx} % leave off demo option in real program
\begin{document}
\begin{figure}
\begin{minipage}[t]{0.45\textwidth}
\includegraphics[width=\linewidth]{figs/immediate_formula_s_avp.pdf}
\caption{Actual Versus Predicted: Immediate}
\label{fig:immediate}
\end{minipage}
\hspace{\fill}
\begin{minipage}[t]{0.45\textwidth}
\includegraphics[width=\linewidth]{figs/proximal_formula_s_avp.pdf}
\caption{Actual Versus Predicted: Proximal}
\label{fig:proximal}
\end{minipage}
\vspace*{0.5cm} % (or whatever vertical separation you prefer)
\begin{minipage}[t]{0.45\textwidth}
\includegraphics[width=\linewidth]{figs/distal_formula_s_avp.pdf}
\caption{Actual Versus Predicted: Distal}
\label{fig:distal}
\end{minipage}
\hspace{\fill}
\begin{minipage}[t]{0.45\textwidth}
\includegraphics[width=\linewidth]{figs/combined_formula_s_avp.pdf}
\caption{Actual Versus Predicted: Combined}
\label{fig:combined}
\end{minipage}
\end{figure}
\end{document}