summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/generic/pgfplots/pgfplotsstackedplots.code.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/generic/pgfplots/pgfplotsstackedplots.code.tex')
-rw-r--r--Master/texmf-dist/tex/generic/pgfplots/pgfplotsstackedplots.code.tex16
1 files changed, 13 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/generic/pgfplots/pgfplotsstackedplots.code.tex b/Master/texmf-dist/tex/generic/pgfplots/pgfplotsstackedplots.code.tex
index 65562458c82..7f6cda54930 100644
--- a/Master/texmf-dist/tex/generic/pgfplots/pgfplotsstackedplots.code.tex
+++ b/Master/texmf-dist/tex/generic/pgfplots/pgfplotsstackedplots.code.tex
@@ -336,9 +336,11 @@
\pgfutil@namelet{pgfplots@stacked@diff@\pgfplots@stacked@dir}{pgfplots@stacked@diff}%
\else
% Ah - no stacked plot!? Well, than do "something useful":
- \pgfplotscoordmath{x}{zero}\let\pgfplots@current@point@x=\pgfmathresult%
- \pgfplotscoordmath{y}{zero}\let\pgfplots@current@point@y=\pgfmathresult%
- \pgfplotscoordmath{z}{zero}\let\pgfplots@current@point@z=\pgfmathresult%
+ % ... note that we have to use 'pgfbasic' here as that is the
+ % "transformed" format.
+ \pgfplotscoordmath{pgfbasic}{zero}\let\pgfplots@current@point@x=\pgfmathresult%
+ \pgfplotscoordmath{pgfbasic}{zero}\let\pgfplots@current@point@y=\pgfmathresult%
+ \pgfplotscoordmath{pgfbasic}{zero}\let\pgfplots@current@point@z=\pgfmathresult%
%
\pgfplotspointgetnormalizedcoordinates%
\pgfplotsutilforeachcommasep{x,y,z}\as\pgfplots@loc@TMPa{%
@@ -369,6 +371,11 @@
% - \pgfplots@current@point@[xyz]
% - \ifpgfplots@curplot@threedim
% are all set properly.
+%
+% POSTCONDITION:
+% - the zero level macro is set (for use in the visualizer)
+% - the closed cycle impl is updated
+% - the points as such are NOT touched
\def\pgfplots@stacked@visphasepreparedatapoint{%
\ifx\pgfplots@stacked@zerolevel\pgfutil@empty
% this here is the case if we have the first encountered plot,
@@ -395,6 +402,9 @@
\pgfplotsaxisvisphasegetpoint
\edef\pgfplots@current@point@x{\the\pgf@x}%
\edef\pgfplots@current@point@y{\the\pgf@y}%
+ % this here merely communicates
+ % \pgfplots@stacked@zerolevelpoint@x and @y outside of the
+ % group:
\pgfplots@stacked@smuggle
\endgroup
%