# How to embed a multiple subplots inside another subfigure using grouplots

Could somebody please give me a hint of how can I do this using grouplots and tikz. I have done it using subfigure and \includegraphics, however, I am facing problems to arrange the borders of the plots relatively to the other plots.

\begin{figure}
\centering
\begin{subfigure}[b]{0.45\linewidth}
\includegraphics[width=\linewidth]{./Figures/c11.tex}
\caption{}
\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{}
\begin{subfigure}[b]{0.45\linewidth}
\begin{tabular}[b]{@{}c@{}}
\includegraphics[width=.45\linewidth]{./Figures/c44-2.tex}\\[-3pt]
\includegraphics[width=.45\linewidth]{./Figures/c44-4.tex} \\[-3pt]
\end{tabular}
\caption{}
\end{subfigure}
\caption{bla bla}
\label{Figure1}
\end{figure}


When I use this code, I get the following Figure. I want it to be perfectly aligned.

I tried to use groupplots but I am not sure how to set the subfigure that is built with 4 subplots. This is a 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}
]
\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}
]

• Thanks for improving your question! However, usually we post minimal working examples, which start with \documentclass, end with \end{document} and can be compiled. Even if I added the preamble to your code, I would not be able to run it because of \includegraphics[width=.45\linewidth]{./Figures/c44-1.tex} and the like. Apart from the fact that I do not have c44-1.tex, one cannot include TeX files via \includegraphics. – marmot Mar 19 at 4:23