A quick and ugly solution, use a scope
around the second groupplot
\documentclass[10pt,a4paper,tikz]{standalone}
\usepackage{pgfplots}
\usepgfplotslibrary{groupplots}
\begin{document}
\begin{tikzpicture}
\begin{groupplot}[
at={(0,0)},
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};
\end{groupplot}
\begin{scope}[xshift=7.9cm,yshift=-3.8cm,scale=1]
\begin{groupplot}[scale=0.5,
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{scope}
\end{tikzpicture}
\end{document}

EDIT
With a second look at your question I would advise the following process :
- Create 1 document per image for a)
, b)
, and c)
using an axis
environment
- Create 1 document for image d)
using a groupplot
- Assemble them in your final document using the figure
and subfigure
environments.
The Image.tex
file should look like
\documentclass[10pt,a4paper,tikz]{standalone}
\usepackage{pgfplots}
\usepgfplotslibrary{groupplots}
\pgfplotsset{style1/.style={cycle multiindex* list = {very thick\nextlist red\nextlist only marks\nextlist}}}
\begin{document}
\begin{tikzpicture}
\begin{axis}[style1]
\addplot {x};
\addplot {x^2};
\end{axis}
\end{tikzpicture}
\begin{tikzpicture}
\begin{axis}[style1,cycle list = {red, blue}]
\addplot{x};
\addplot{x^2};
\end{axis}
\end{tikzpicture}
\begin{tikzpicture}
\begin{axis}[style1]
\addplot[green] {x};
\addplot {x^2};
\end{axis}
\end{tikzpicture}
\begin{tikzpicture}
\begin{groupplot}[group style={group size=2 by 2},style1]
\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{tikzpicture}
\end{document}
and in your main document, you should use something like
\begin{figure}
\begin{subfigure}{0.5\textwidth}
\includegraphics[page=1]{Image.pdf}
\end{figure}%
\begin{subfigure}{0.5\textwidth}
\includegraphics[page=2]{Image.pdf}
\end{figure}
\begin{subfigure}{0.5\textwidth}
\includegraphics[page=3]{Image.pdf}
\end{figure}%
\begin{subfigure}{0.5\textwidth}
\includegraphics[page=4,scale=0.5]{Image.pdf}
\end{figure}