summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/generic/pgfplots/libs/tikzlibrarypgfplots.ternary.code.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/generic/pgfplots/libs/tikzlibrarypgfplots.ternary.code.tex')
-rw-r--r--Master/texmf-dist/tex/generic/pgfplots/libs/tikzlibrarypgfplots.ternary.code.tex16
1 files changed, 10 insertions, 6 deletions
diff --git a/Master/texmf-dist/tex/generic/pgfplots/libs/tikzlibrarypgfplots.ternary.code.tex b/Master/texmf-dist/tex/generic/pgfplots/libs/tikzlibrarypgfplots.ternary.code.tex
index 7000f8c13cf..cefa4fd82a0 100644
--- a/Master/texmf-dist/tex/generic/pgfplots/libs/tikzlibrarypgfplots.ternary.code.tex
+++ b/Master/texmf-dist/tex/generic/pgfplots/libs/tikzlibrarypgfplots.ternary.code.tex
@@ -305,15 +305,19 @@
\def\pgfplots@ternary@init@map@to@unit#1{%
\begingroup
- \pgfmath@basic@subtract@
- {\csname pgfplots@#1max\endcsname}
- {\csname pgfplots@#1min\endcsname}%
- \pgfmath@basic@reciprocal@\pgfmathresult
+ \pgfplotscoordmath{default}{parsenumber}{\csname pgfplots@#1max\endcsname}%
+ \let\pgfplots@loc@TMPa=\pgfmathresult
+ \pgfplotscoordmath{default}{parsenumber}{\csname pgfplots@#1min\endcsname}%
+ \let\pgfplots@map@to@unit@scale@diff=\pgfmathresult
+ \pgfplotscoordmath{default}{op}{subtract}{{\pgfplots@loc@TMPa}{\pgfmathresult}}%
+ \pgfplotscoordmath{default}{op}{reciprocal}{{\pgfmathresult}}%
\let\pgfplots@map@to@unit@scale=\pgfmathresult
%
\expandafter\xdef\csname pgfplots@ternary@map@to@unit@#1\endcsname##1{%
- \noexpand\pgfmath@basic@subtract@{##1}{\csname pgfplots@#1min\endcsname}%
- \noexpand\pgfmath@basic@multiply@{\noexpand\pgfmathresult}{\pgfplots@map@to@unit@scale}%
+ \noexpand\pgfplotscoordmath{default}{parsenumber}{##1}%
+ \noexpand\pgfplotscoordmath{default}{op}{subtract}{{\noexpand\pgfmathresult}{\pgfplots@map@to@unit@scale@diff}}%
+ \noexpand\pgfplotscoordmath{default}{op}{multiply}{{\noexpand\pgfmathresult}{\pgfplots@map@to@unit@scale}}%
+ \noexpand\pgfplotscoordmath{default}{tofixed}{\noexpand\pgfmathresult}%
}%
\endgroup
}