summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/generic/pgfplots/pgfplotsstackedplots.code.tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2015-01-31 21:37:06 +0000
committerKarl Berry <karl@freefriends.org>2015-01-31 21:37:06 +0000
commit84e0e95868a845e531157a1cb94f622da016e6a5 (patch)
treef880703d39c15193369f6e82eaa169755ae54e22 /Master/texmf-dist/tex/generic/pgfplots/pgfplotsstackedplots.code.tex
parent13673a964ccd149c582585f4df887a11457a430a (diff)
pgfplots (31jan15)
git-svn-id: svn://tug.org/texlive/trunk@36178 c570f23f-e606-0410-a88d-b1316a301751
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
%