有人能给我提示一下如何使用 grouplots 和 tikz 来实现这一点吗?我已经使用 subfigure 和 \includegraphics 实现了这一点,但是,我在相对于其他图排列图的边框时遇到了问题。
\begin{figure}
\centering
\begin{subfigure}[b]{0.45\linewidth}
\includegraphics[width=\linewidth]{./Figures/c11.tex}
\caption{}
\end{subfigure} \quad
\begin{subfigure}[b]{0.45\linewidth}
\includegraphics[width=\linewidth]{./Figures/c22.tex}
\caption{}
\end{subfigure} \\
\begin{subfigure}[b]{0.45\linewidth}
\centering
\includegraphics[width=\linewidth]{./Figures/c33.tex}
\caption{}
\end{subfigure}\quad
\begin{subfigure}[b]{0.45\linewidth}
\begin{tabular}[b]{@{}c@{}}
\includegraphics[width=.45\linewidth]{./Figures/c44-1.tex} \quad
\includegraphics[width=.45\linewidth]{./Figures/c44-2.tex}\\[-3pt]
\includegraphics[width=.45\linewidth]{./Figures/c44-3.tex} \quad
\includegraphics[width=.45\linewidth]{./Figures/c44-4.tex} \\[-3pt]
\end{tabular}
\caption{}
\end{subfigure}
\caption{bla bla}
\label{Figure1}
\end{figure}
当我使用此代码时,我得到下图。我希望它完美对齐。
我尝试使用 groupplots,但不确定如何设置由 4 个子图构建的子图。这是一个 MWE。
\documentclass[10pt,a4paper]{article}
\usepackage{tikz}
\usepackage{pgfplots}
\usepgfplotslibrary{groupplots}
\begin{document}
\begin{figure}
\begin{tikzpicture}
\begin{groupplot}[
group style={group size=2 by 2},
cycle multiindex* list = {very thick\nextlist red\nextlist only
marks\nextlist}
]
\nextgroupplot \addplot {x}; \addplot {x^2};
\nextgroupplot[cycle list = {red, blue}] \addplot {x}; \addplot {x^2};
\nextgroupplot \addplot[green] {x}; \addplot {x^2};
\nextgrouplot %Here I am not sure what to do
\begin{groupplot}[
group style={group size=2 by 2},
cycle multiindex* list = {very
thick\nextlist red\nextlist only
marks\nextlist}
]
\nextgroupplot \addplot {x}; \addplot {x^2};
\nextgroupplot \addplot {x}; \addplot {x^2};
\nextgroupplot \addplot {x}; \addplot {x^2};
\nextgroupplot \addplot {x}; \addplot {x^2};
\end{groupplot}
\end{groupplot}
\end{tikzpicture}
\end{figure}
\end{document}