summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/generic/pgfplots/pgfplotsstackedplots.code.tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2011-12-30 22:58:39 +0000
committerKarl Berry <karl@freefriends.org>2011-12-30 22:58:39 +0000
commit44ccd75065152cd73c512645bc4dc6d258fe62cb (patch)
tree39e9b861199f3172d9cff378a68f2c773248db87 /Master/texmf-dist/tex/generic/pgfplots/pgfplotsstackedplots.code.tex
parentb3370daebbffee05312803e74c40f6d0abbf08c4 (diff)
pgfplots 1.5.1 (29dec11)
git-svn-id: svn://tug.org/texlive/trunk@24977 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.tex21
1 files changed, 12 insertions, 9 deletions
diff --git a/Master/texmf-dist/tex/generic/pgfplots/pgfplotsstackedplots.code.tex b/Master/texmf-dist/tex/generic/pgfplots/pgfplotsstackedplots.code.tex
index 2276f571db9..15e78f6c8fd 100644
--- a/Master/texmf-dist/tex/generic/pgfplots/pgfplotsstackedplots.code.tex
+++ b/Master/texmf-dist/tex/generic/pgfplots/pgfplotsstackedplots.code.tex
@@ -119,15 +119,17 @@
\def\pgfplots@stacked@zerolevelpoint@y{0}%
\def\pgfplots@stacked@zerolevelpoint@z{0}%
\else
- \pgfplotscoordmath{x}{parsenumber}{0}%
+ % note that log plots are special: their "stacked zero" is
+ % computed with \pgfplotscoordmath{default}
+ %
+ \pgfplots@if{pgfplots@xislinear}{\pgfplotscoordmath{x}{zero}}{\pgfplotscoordmath{default}{zero}}%
\let\pgfplots@stacked@zerolevelpoint@x=\pgfmathresult
+ %
+ \pgfplots@if{pgfplots@yislinear}{\pgfplotscoordmath{y}{zero}}{\pgfplotscoordmath{default}{zero}}%
\let\pgfplots@stacked@zerolevelpoint@y=\pgfmathresult
- \let\pgfplots@stacked@zerolevelpoint@z=\pgfmathresult
%
- \pgfmathfloatcreate{0}{0.0}{0}%
- \ifpgfplots@xislinear\else \let\pgfplots@stacked@zerolevelpoint@x=\pgfmathresult \fi
- \ifpgfplots@yislinear\else \let\pgfplots@stacked@zerolevelpoint@y=\pgfmathresult \fi
- \ifpgfplots@zislinear\else \let\pgfplots@stacked@zerolevelpoint@z=\pgfmathresult \fi
+ \pgfplots@if{pgfplots@xislinear}{\pgfplotscoordmath{z}{zero}}{\pgfplotscoordmath{default}{zero}}%
+ \let\pgfplots@stacked@zerolevelpoint@z=\pgfmathresult
\fi
%
\def\pgfplots@stacked@getnextzerolevelpoint{}% will remain constant anyway.
@@ -264,12 +266,13 @@
{\csname pgfplots@current@point@\pgfplots@stacked@dir\endcsname}}%
}{%
% LOG. we need to compute log(zerolevel + current):
- \pgfplotscoordmath{\pgfplots@stacked@dir}{exp}{\csname pgfplots@current@point@\pgfplots@stacked@dir\endcsname}%
- \pgfmathfloatparsenumber\pgfmathresult
+ \pgfplotscoordmath{default}{parsenumber}{\csname pgfplots@current@point@\pgfplots@stacked@dir\endcsname}%
+ \pgfplotscoordmath{default}{exp}{\pgfmathresult}%
\expandafter\let\csname pgfplots@current@point@\pgfplots@stacked@dir\endcsname=\pgfmathresult
- \csname pgfmathfloat\pgfplots@stacked@op @\endcsname
+ \pgfplotscoordmath{default}{op}{\pgfplots@stacked@op}{%
{\csname pgfplots@stacked@zerolevelpoint@\pgfplots@stacked@dir\endcsname}%
{\csname pgfplots@current@point@\pgfplots@stacked@dir\endcsname}%
+ }%
}%
%
% for logs, I remember just zerolevel+current; not its log.