Is it possible to have a smaller plot embedded into one of the plots of a groupplot? Similar to a magnified region of the plot at the top corner, which is part of a group of other plots in the groupplot environment.I know its possible to do it in a regular axis environment, but how about the groupplot environment. Thanks.
\documentclass[tikz]{standalone}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\usepackage{textcomp}
\usepackage[version=4]{mhchem}
\usepackage{amsmath}
\usepackage{fixltx2e}
\usepackage{pgfplots,tikz}
\usepackage{chemfig,siunitx}
\usetikzlibrary{matrix,calc,arrows,shapes,positioning}
\usepgfplotslibrary{groupplots}
\DeclareSIUnit{\molar}{M}
\pgfplotsset{compat=newest}
\pagestyle{empty}
\begin{document}
\begin{tikzpicture}
\begin{groupplot}[
group style={
group size=2 by 2,
horizontal sep=40pt,
vertical sep=40pt
},
xmin=382,xmax=488,
xtick pos=left,
ytick pos=left,
no marks,
xlabel={},
ylabel={},
legend style={font=\tiny},
legend pos=south east,
legend columns=2
]
\nextgroupplot[title=\textbf{(\romannumeral2)} in 5 \si{\milli\molar} buffer]
\addplot table [col sep=comma, x=nm, y=0] {./figures/ST041-1 CoPor 24 LG deriv.csv};
\addlegendentry{0 \si{\micro\molar}};
\addplot table [col sep=comma, x=nm, y=2.3] {./figures/ST041-1 CoPor 24 LG deriv.csv};
\addlegendentry{2.3 \si{\micro\molar}};
\addplot table [col sep=comma, x=nm, y=3.5] {./figures/ST041-1 CoPor 24 LG deriv.csv};
\addlegendentry{3.5 \si{\micro\molar}};
\addplot table [col sep=comma, x=nm, y=5.2] {./figures/ST041-1 CoPor 24 LG deriv.csv};
\addlegendentry{5.2 \si{\micro\molar}};
%
\begin{axis}[
width=.3\textwidth,
]
\addplot [only marks, mark=o] table [col sep=comma, x=Lo, y=A2] {./Appendix/new micromath fit/ST039 long IMD 5 mM deriv.csv}; \label{raw}
\addplot [no marks, smooth] table [col sep=comma, x=Lo, y=A2Calc] {./Appendix/new micromath fit/ST039 long IMD 5 mM deriv.csv}; \label{fit}
\end{axis}
\end{groupplot}
\end{tikzpicture}
\end{document}