summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/generic/pgfplots/libs/tikzlibrarypgfplots.groupplots.code.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/generic/pgfplots/libs/tikzlibrarypgfplots.groupplots.code.tex')
-rw-r--r--Master/texmf-dist/tex/generic/pgfplots/libs/tikzlibrarypgfplots.groupplots.code.tex30
1 files changed, 21 insertions, 9 deletions
diff --git a/Master/texmf-dist/tex/generic/pgfplots/libs/tikzlibrarypgfplots.groupplots.code.tex b/Master/texmf-dist/tex/generic/pgfplots/libs/tikzlibrarypgfplots.groupplots.code.tex
index 74f7cd56a43..0f42923b753 100644
--- a/Master/texmf-dist/tex/generic/pgfplots/libs/tikzlibrarypgfplots.groupplots.code.tex
+++ b/Master/texmf-dist/tex/generic/pgfplots/libs/tikzlibrarypgfplots.groupplots.code.tex
@@ -437,7 +437,19 @@
\pgfutil@ifnextchar[{\pgfplots@@environment@groupplot}{\pgfplots@@environment@groupplot[\pgfutil@empty]}%
}
-\def\endpgfplots@environment@groupplot{\endpgfplots@environment@opt\endgroup}
+\def\endpgfplots@environment@groupplot{%
+ \endpgfplots@environment@opt
+ %
+ % transport some items beyond this \endgroup:
+ \pgf@remember@layerlist@globally
+ \aftergroup\pgf@restore@layerlist@from@global
+ \endgroup
+ %
+ % ... and transport them beyond the next \endgroup as well (LaTeX
+ % introduces one for \end{groupplot}):
+ \aftergroup\pgf@restore@layerlist@from@global
+ \aftergroup\pgfplots@cell@picture@remembered
+}
\def\pgfplots@@environment@groupplot[#1]{%
\begingroup%
@@ -445,27 +457,27 @@
% the following things appear to be complete... ?
\pgfkeysinstallkeyfilterhandler{/pgf/key filter handlers/append filtered to}{\pgfplots@group@rmopts}%
\let\pgfplots@group@rmopts=\pgfutil@empty
- \pgfkeysinstallkeyfilter{/pgf/key filters/equals}{/pgfplots/group style}
- \pgfkeysinstallkeyfilter{/pgf/key filters/is descendant of}{/pgfplots/group}
- \pgfqkeysfiltered{/pgfplots}{#1}
+ \pgfkeysinstallkeyfilter{/pgf/key filters/equals}{/pgfplots/group style}%
+ \pgfkeysinstallkeyfilter{/pgf/key filters/is descendant of}{/pgfplots/group}%
+ \pgfqkeysfiltered{/pgfplots}{#1}%
\edef\pgfplots@loc@TMPa{%
- \noexpand\pgfkeys{/pgfplots/group/.cd,\pgfplots@group@style}
+ \noexpand\pgfkeys{/pgfplots/group/.cd,\pgfplots@group@style}%
}\pgfplots@loc@TMPa
%
\let\pgfplots@set@options@sanitizemode@old=\pgfplots@set@options@sanitizemode
\let\pgfplots@set@options@sanitize@old=\pgfplots@set@options@sanitize
\let\pgfplots@set@options@sanitize=\relax
\let\pgfplots@set@options@sanitizemode=\relax
- \expandafter\pgfplots@set@options\expandafter{\pgfplots@group@rmopts}
+ \expandafter\pgfplots@set@options\expandafter{\pgfplots@group@rmopts}%
\let\pgfplots@set@options@sanitize=\pgfplots@set@options@sanitize@old
\let\pgfplots@set@options@sanitizemode=\pgfplots@set@options@sanitizemode@old
%
\pgfplots@group@individual@setup
\pgfplots@group@determine@ticklabels
\pgfplots@group@determine@labels
- \pgfplots@group@current@plot=0%
- \pgfplots@group@current@row=1%
- \pgfplots@group@current@column=0%
+ \pgfplots@group@current@plot=0 %
+ \pgfplots@group@current@row=1 %
+ \pgfplots@group@current@column=0 %
\begingroup
\c@pgf@counta=\pgfplots@group@rows\relax
\multiply \c@pgf@counta by\pgfplots@group@columns\relax