summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/generic/pgfplots/pgfplotscore.code.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/generic/pgfplots/pgfplotscore.code.tex')
-rw-r--r--Master/texmf-dist/tex/generic/pgfplots/pgfplotscore.code.tex66
1 files changed, 47 insertions, 19 deletions
diff --git a/Master/texmf-dist/tex/generic/pgfplots/pgfplotscore.code.tex b/Master/texmf-dist/tex/generic/pgfplots/pgfplotscore.code.tex
index e446999cb80..54e02d4496f 100644
--- a/Master/texmf-dist/tex/generic/pgfplots/pgfplotscore.code.tex
+++ b/Master/texmf-dist/tex/generic/pgfplots/pgfplotscore.code.tex
@@ -57,11 +57,19 @@
}%
\newif\ifpgfplots@LUA@supported
-\pgfutil@IfUndefined{directlua}{%
- \pgfplots@LUA@supportedfalse
-}{%
- \pgfplots@LUA@supportedtrue
-}%
+\pgfkeys{
+ /pgfplots/lua support/.is choice,
+ /pgfplots/lua support/true/.code={\pgfplots@LUA@supportedtrue},%
+ /pgfplots/lua support/false/.code={\pgfplots@LUA@supportedfalse},%
+ /pgfplots/lua support/auto/.code={%
+ \pgfutil@IfUndefined{directlua}{%
+ \pgfplots@LUA@supportedfalse
+ }{%
+ \pgfplots@LUA@supportedtrue
+ }%
+ },%
+ /pgfplots/lua support/auto,% this is the default anyway
+}
% this is an emergency key which allows to switch off LUA support in
% pgfplots early at boot time.
@@ -113,6 +121,7 @@
}%
}%
\pgfplots@log3{Initializing with LUA version \pgfplotsutil@directlua{tex.print(_VERSION)}}%
+ % attention: this can set 'lua support=false' as a side-effect:
\pgfplotsutil@directlua{require("pgfplots"); pgfplots.pgfplotsversion = "\pgfplotsversion";}%
%
\pgfplots@alloc@catcodetable
@@ -121,19 +130,6 @@
\pgfplotsutil@directlua{pgfplots.LOAD_TIME_CATCODETABLE = \the\c@pgf@counta}%
\fi
-\pgfkeys{
- /pgfplots/lua support/.is choice,
- /pgfplots/lua support/true/.code={\pgfplots@LUA@supportedtrue},%
- /pgfplots/lua support/false/.code={\pgfplots@LUA@supportedfalse},%
- /pgfplots/lua support/auto/.code={%
- \pgfutil@IfUndefined{directlua}{%
- \pgfplots@LUA@supportedfalse
- }{%
- \pgfplots@LUA@supportedtrue
- }%
- },%
- %/pgfplots/lua support/auto,% this is the default anyway
-}
\def\pgfplots@error#1{\PackageError{pgfplots}{#1}{}}%
\def\pgfplotstable@error@pkg#1{\PackageError{pgfplotstable}{#1}{}}%
@@ -251,6 +247,13 @@
\fi
\let#1=\pgfutil@empty
},%
+ /pgfplots/exception/cycle list instantiation needed/.code={%
+ \ifx\pgfplotsexceptionmsg\relax
+ \pgfplots@error{Please invoke \string\pgfplotsset{cycle list/#1} before using cycle list '#1'}%
+ \else
+ \pgfplots@error{\pgfplotsexceptionmsg}%
+ \fi
+ },%
% #1: an error message
/pgfplots/exception/unsupported operation/.code={%
\ifx\pgfplotsexceptionmsg\relax
@@ -270,6 +273,13 @@
\fi
\let#1=\relax
},
+ /pgfplots/exception/dimension too small in ticks/.code args={#1}{%
+ \ifx\pgfplotsexceptionmsg\relax
+ \pgfplots@error{The argument(s) for #1tick resulted in a tick distance which is too small. Please reconfigure the xtick argument(s)}%
+ \else
+ \pgfplots@error{\pgfplotsexceptionmsg}%
+ \fi
+ },
%
%
%
@@ -295,6 +305,9 @@
/pgfplots/warning/no such addplot label/.code={%
\pgfplotsthrow@warning{There is no \string\addplot\space label `#1', sorry. I am skipping it}%
},
+ /pgfplots/warning/missing near ticklabel at/.code={%
+ \pgfplotsthrow@warning{The anchor 'near ticklabel' cannot be computed correctly because the position is missing. Please add 'near ticklabel at=coordinate' with a suitable coordinate}%
+ },
/pgfplots/warning/enlargelimits respects figure size failed/.code={%
\pgfplotsthrow@warning{enlargelimits respects figure size=true: could not respect the prescribed width/height (\pgfplotsretval). The size and/or aspect ratio of your image will be different than expected. You can try to modify BOTH width and height.}%
},
@@ -305,9 +318,15 @@
/pgfplots/warning/approx empty range enlarged/.code args={#1#2#3}{%
\pgfplotsthrow@warning{Axis range for axis #1 is approximately empty; enlarging it (it is [#2:#3])}%
},
+ /pgfplots/warning/dimension too large in ticks/.code args={#1#2#3}{%
+ \pgfplotsthrow@warning{The argument for #1tick distance=#2 was capped to #3 in order to avoid 'dimension too large'}%
+ },
/pgfplots/warning/lossy colormap rgb conversion/.code 2 args={%
\pgfplotsthrow@warning{I am about to convert colormap '#1' from #2\space to rgb (which might be lossy). Perhaps the choice 'colorbar sampled={surf,shader=interp}' yields better results since it supports #2.}%
},
+ /pgfplots/warning/cycle list size limit reached/.code={%
+ \pgfplotsthrow@warning{Reached /pgfplots/@cycle/max size=\pgfkeysvalueof{/pgfplots/@cycle/max size}. Omitting all following entries.}%
+ },
/pgfplots/warning/colorbar uninitialised/.code={%
\pgfplotsthrow@warning{Sorry, the colorbar is uninitialised - your axis has no color data. Consider using 'point meta=f(x)' or something like that. I am using a color range of [0,1] for the colorbar.}%
},
@@ -349,7 +368,16 @@
as sqrt(num points) = sqrt(#3) [ = #4].}%
},
/pgfplots/warning/matrix check/.code args={#1#2#3#4#5}{%
- #1{the arguments of [mesh/rows=#2,mesh/cols=#3] assume #5\space points, but I got actually N = #4\space points! The data matrix appears to be incomplete or overcomplete!? [Use mesh/check=false to disable this message]}%
+ #1{the arguments of [mesh/rows=#2,mesh/cols=#3] assume #5\space points, but I actually got N = #4\space points! The data matrix appears to be incomplete or overcomplete!? [Use mesh/check=false to disable this message]}%
+ },
+ /pgfplots/warning/imagesc limits incomplete/.code args={#1}{%
+ \pgfkeysgetvalue{/pgfplots/empty line}\pgfplots@loc@TMPa%
+ \def\pgfplots@loc@TMPb{scanline}
+ \ifx\pgfplots@loc@TMPb\pgfplots@loc@TMPa
+ \pgfplotsthrow@warning{Automatic computation of axis limits for 'matrix plot' is INACCURATE. Please add the key '#1'. You can also ignore this warning and deal with axis limits manually}%
+ \else
+ \pgfplotsthrow@warning{Automatic computation of axis limits for 'matrix plot' is INACCURATE. Please add the keys '#1,empty line=scanline' (current value is empty line=\pgfplots@loc@TMPa). You can also ignore this warning and deal with axis limits manually}%
+ \fi
},
/pgfplots/warning/tick computation failed/.code 2 args={%
\pgfplotsthrow@warning{Tick computation for direction #1 failed; there are always too few tick labels (try min ticks has already been advanced to #2)}%