summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/generic/pgfplots/pgfplots.scaling.code.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/generic/pgfplots/pgfplots.scaling.code.tex')
-rw-r--r--Master/texmf-dist/tex/generic/pgfplots/pgfplots.scaling.code.tex5
1 files changed, 5 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/generic/pgfplots/pgfplots.scaling.code.tex b/Master/texmf-dist/tex/generic/pgfplots/pgfplots.scaling.code.tex
index 478c3fe2bef..a1b51498005 100644
--- a/Master/texmf-dist/tex/generic/pgfplots/pgfplots.scaling.code.tex
+++ b/Master/texmf-dist/tex/generic/pgfplots/pgfplots.scaling.code.tex
@@ -526,15 +526,19 @@
\def\pgfplots@scaleaxes@to@BB@prepare@plotbox@limits@#1{%
\expandafter\ifx\csname pgfplots@#1\endcsname\pgfutil@empty
+ % Ah - we have no unit vector in this direction.
\expandafter\def\csname pgfplots@plotbox@#1min\endcsname{0}%
\expandafter\def\csname pgfplots@plotbox@#1max\endcsname{1}%
\expandafter\def\csname b@pgfplots@plotbox@#1isunit\endcsname{1}%
\else
+ % we have a unit vector... prepare for limits. Note that the
+ % unit vector has been prepared for data scaling already.
\pgfutil@namelet{pgfplots@plotbox@#1min}{pgfplots@#1min}%
\pgfutil@namelet{pgfplots@plotbox@#1max}{pgfplots@#1max}%
\expandafter\def\csname b@pgfplots@plotbox@#1isunit\endcsname{0}%
\if2\pgfplots@scale@mode@choice
% scale mode=stretch to fill
+ % do NOT rescale unit vectors for stretch to fill :
\expandafter\def\csname b@pgfplots@rescale@#1\endcsname{0}%
\fi
\fi
@@ -549,6 +553,7 @@
\def\pgfplots@scaleaxes@to@BB@#1#2{%
\begingroup
+%\message{SCALING: scale mode choice = \pgfplots@scale@mode@choice^^J}%
%
\pgfplots@scaleaxes@to@BB@prepare@plotbox@limits
\def\pgfplots@target@limitrescale@x{1}%