summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/generic/pgfplots
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2008-06-15 17:56:37 +0000
committerKarl Berry <karl@freefriends.org>2008-06-15 17:56:37 +0000
commit3f126e90ac9efa15e72c8b415a2f25d3b19c509a (patch)
tree3fb6f3eebbf51978c31e8d6ff1180432e50b9935 /Master/texmf-dist/doc/generic/pgfplots
parent9667a29e9fef0ef89c9d7bd311e2d2a6aaccf50c (diff)
painful pgfplots update (14jun08)
git-svn-id: svn://tug.org/texlive/trunk@8751 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/generic/pgfplots')
-rw-r--r--Master/texmf-dist/doc/generic/pgfplots/README33
-rw-r--r--Master/texmf-dist/doc/generic/pgfplots/ext_scripts/matlab2pgfplots.m337
-rw-r--r--Master/texmf-dist/doc/generic/pgfplots/ext_scripts/matlab2pgfplots.sh80
-rw-r--r--Master/texmf-dist/doc/generic/pgfplots/ext_scripts/pgf2pdf.sh282
-rw-r--r--Master/texmf-dist/doc/generic/pgfplots/test/liststructuretest/liststructuretest.tex164
-rw-r--r--Master/texmf-dist/doc/generic/pgfplots/test/numtabletest/numtabletest.generated1.tex1
-rw-r--r--Master/texmf-dist/doc/generic/pgfplots/test/numtabletest/numtabletest.tex211
-rw-r--r--Master/texmf-dist/doc/generic/pgfplots/test/numtabletest/numtabletestdata11
-rw-r--r--Master/texmf-dist/doc/generic/pgfplots/test/numtabletest/numtabletestdata211
-rw-r--r--Master/texmf-dist/doc/generic/pgfplots/test/numtabletest/numtabletestdata2.brace11
-rw-r--r--Master/texmf-dist/doc/generic/pgfplots/test/numtabletest/numtabletestdata2.colon10
-rw-r--r--Master/texmf-dist/doc/generic/pgfplots/test/numtabletest/numtabletestdata2.csv11
-rw-r--r--Master/texmf-dist/doc/generic/pgfplots/test/numtabletest/numtabletestdata2.gnuplot8
-rw-r--r--Master/texmf-dist/doc/generic/pgfplots/test/numtabletest/numtabletestdata2.semicolon11
-rw-r--r--Master/texmf-dist/doc/generic/pgfplots/test/numtabletest/numtabletestdata310
-rw-r--r--Master/texmf-dist/doc/generic/pgfplots/test/pgfkeysaddition/pgfkeysadditiontest.tex251
-rw-r--r--Master/texmf-dist/doc/generic/pgfplots/test/pgfmathlogtest/pgfmathlogtest.tex507
-rw-r--r--Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.align.tex215
-rw-r--r--Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.axislines.tex259
-rw-r--r--Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.axispath.tex41
-rw-r--r--Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.enlargelimits.tex99
-rw-r--r--Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.errorbars.tex153
-rw-r--r--Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.expr.tex15
-rw-r--r--Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.file.tex121
-rw-r--r--Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.function.tex24
-rw-r--r--Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.gnuplot_exp.gnuplot2
-rw-r--r--Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.gnuplot_exp.table54
-rw-r--r--Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.gnuplot_sin.gnuplot2
-rw-r--r--Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.gnuplot_sin.table54
-rw-r--r--Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.gridtick.tex84
-rw-r--r--Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.hansmeine_app.tex114
-rw-r--r--Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.legend.tex78
-rw-r--r--Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.logplotenv.tex142
-rw-r--r--Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.misc.tex171
-rw-r--r--Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.parable.gnuplot2
-rw-r--r--Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.parable.table29
-rw-r--r--Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.plottypes.tex219
-rw-r--r--Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.scaling.tex478
-rw-r--r--Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.sinneg.gnuplot2
-rw-r--r--Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.sinneg.table44
-rw-r--r--Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.styledplot.gnuplot2
-rw-r--r--Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.styledplot.table29
-rw-r--r--Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.styledplot2.gnuplot2
-rw-r--r--Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.styledplot2.table29
-rw-r--r--Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.styles.tex135
-rw-r--r--Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.tex182
-rw-r--r--Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.ticks.tex296
-rw-r--r--Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/plotdata/pgfplotstest_plot11
-rw-r--r--Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/plotdata/pgfplotstest_plot2.gnuplot22
-rw-r--r--Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/plotdata/pgfplotstest_plot311
-rw-r--r--Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/plotdata/pgfplotstest_plot425
-rw-r--r--Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/plotdata/pgfplotstest_plot524
-rw-r--r--Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/plotdata/pgfplotstest_plotnocolnames9
-rw-r--r--Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/valueplot-flowlines_1.dat92
-rw-r--r--Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/valueplot-flowlines_2.dat221
-rw-r--r--Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/valueplot-flowlines_3.dat39
-rw-r--r--Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/valueplot-flowlines_4.dat34
57 files changed, 5514 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/generic/pgfplots/README b/Master/texmf-dist/doc/generic/pgfplots/README
new file mode 100644
index 00000000000..2712d896c26
--- /dev/null
+++ b/Master/texmf-dist/doc/generic/pgfplots/README
@@ -0,0 +1,33 @@
+pgfplots - A tool to draw normal and/or logarithmic plots in LaTeX/TeX/ConTeXt.
+
+Pgfplots draws high-quality function plots in normal or logarithmic
+scaling with a user-friendly interface. The user supplies axis labels, legend
+entries and the plot coordinates for one or more plots and Pgfplots applies
+axis scaling, computes any logarithms and axis ticks and draws the plots.
+It is based on Till Tantau's package PGF/TikZ.
+
+Pgfplots also provides methods to typeset numeric tables, rounds to prescribed
+accuracy and typesets numbers in the desired format.
+
+Please take a look at
+ doc/latex/pgfplots/pgfplots.pdf
+and
+ doc/latex/pgfplots/pgfplotstable.pdf
+The manual contains installation instructions and more detailed information.
+
+
+Copyright 2007/2008 by Christian Feuersaenger.
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+(at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program. If not, see <http://www.gnu.org/licenses/>.
+
diff --git a/Master/texmf-dist/doc/generic/pgfplots/ext_scripts/matlab2pgfplots.m b/Master/texmf-dist/doc/generic/pgfplots/ext_scripts/matlab2pgfplots.m
new file mode 100644
index 00000000000..5c1fc6296c6
--- /dev/null
+++ b/Master/texmf-dist/doc/generic/pgfplots/ext_scripts/matlab2pgfplots.m
@@ -0,0 +1,337 @@
+function matlab2pgfplots(varargin )
+% matlab2pgfplots(outfile )
+% matlab2pgfplots( outfile, OPTIONS )
+%
+% Generate LaTeX code for use in package pgfplots to
+% draw line plots.
+%
+% It will use every (2d) line plot in the figure specified by handler fighandle.
+%
+% It understands
+% - axis labels,
+% - legends,
+% - any 2d line plots,
+% - line styles/markers (in case of styles=1),
+% - tick positions, labels and axis limits (in case of axes=1).
+%
+% Linestyles and markers will follow as an option. However, pgfplots has its
+% own line styles which may be appropriate.
+%
+% Although pgfplots can also handle bar and area plots, this script is not yet
+% capable of converting them. Feel free to modify it and send the final version
+% to me!
+%
+% OPTIONS are key value pairs. Known options are
+% - 'fig',HANDLE
+% a figure handle (default is 'gcf').
+% - 'styles',0|1
+% a boolean indicating whether line styles, markers and colors shall be exported (default 1).
+% - 'axes',0|1
+% a boolean indicating whether axis ticks, tick labels and limits shall be exported (default 0).
+% - 'maxpoints',100
+% an integer denoting the maximum number of points exported to tex. If the actual number is larger,
+% the data will be interpolated to 'maxpoints'. The interpolation assumes
+% parametric plots if x and y are not monotonically increasing.
+%
+% See
+% http://tug.ctan.org/tex-archive/graphics/pgf/contrib/pgfplots/
+% for details about pgfplots.
+%
+%
+%
+% Copyright Christian Feuersaenger 2008
+%
+parser = inputParser;
+
+parser.addRequired( 'outfile', @(x) ischar(x) );
+parser.addParamValue( 'fig', gcf, @(x) ishandle(x) );
+parser.addParamValue( 'styles', 1, @(x) x==0 || x==1 );
+parser.addParamValue( 'axes' , 0, @(x) x==0 || x==1 );
+parser.addParamValue( 'maxpoints', 100000, @(x) isnumeric(x) );
+
+parser.parse( varargin{:} );
+
+
+fighandle = parser.Results.fig;
+
+lineobjs = findobj(fighandle, 'Type', 'line' );
+axesobj = findobj( fighandle, 'Type', 'axes' );
+
+legendobj = findobj( fighandle, 'tag', 'legend' );
+if length(legendobj) > 0
+ allchildsoflegend = [ findobj( legendobj ) ];
+ lineobjs = setdiff( lineobjs, allchildsoflegend );
+ axesobj = setdiff( axesobj, allchildsoflegend );
+end
+
+FID=fopen( parser.Results.outfile, 'w' );
+assert( FID >= 0, [ 'could not open file ' parser.Results.outfile ' for writing' ] );
+
+ENDL=sprintf('\n');
+TAB=sprintf('\t');
+fwrite( FID, [ ...
+ '\begin{tikzpicture}%' ENDL ...
+ '\begin{axis}'] );
+
+xislog = 0;
+yislog = 0;
+
+if length(axesobj) > 0
+ axis = axesobj(1);
+ xlabel = get( get(axis, 'XLabel'), 'String');
+ ylabel = get( get(axis, 'YLabel'), 'String');
+ zlabel = get( get(axis, 'ZLabel'), 'String');
+ xscale = get(axis,'XScale');
+ yscale = get(axis,'YScale');
+
+ axisoptions = {};
+ if length(xlabel) > 0
+ axisoptions = [ axisoptions [ 'xlabel={' xlabel '}'] ];
+ end
+ if length(ylabel) > 0
+ axisoptions = [ axisoptions ['ylabel={' ylabel '}'] ];
+ end
+ if strcmp(xscale,'log')
+ xislog=1;
+ axisoptions = [ axisoptions ['xmode=log'] ];
+ end
+ if strcmp(yscale,'log')
+ yislog = 1;
+ axisoptions = [ axisoptions ['ymode=log'] ];
+ end
+ if parser.Results.axes
+ for k = 'xy'
+ L = get(gca, [ k 'Lim'] );
+ axisoptions = [ axisoptions [ k 'min=' num2str(L(1)) ] ];
+ axisoptions = [ axisoptions [ k 'max=' num2str(L(2)) ] ];
+ end
+
+ for k = 'xy'
+ L = get(gca, [ k 'Tick'] );
+ opt = [ k 'tick={' ];
+ for q=1:length(L)
+ if q>1
+ opt = [opt ',' ];
+ end
+ opt = [opt num2str(L(q)) ];
+ end
+ opt = [ opt '}' ];
+ axisoptions = [axisoptions opt ];
+ end
+
+ end
+
+
+ axisoptstr = [];
+ for i = 1:length(axisoptions)
+ if i>1
+ axisoptstr = [axisoptstr ',' ENDL TAB];
+ end
+ axisoptstr = [axisoptstr axisoptions{i}];
+ end
+ if length( axisoptstr )
+ fwrite( FID, [ '[' ENDL TAB axisoptstr ']' ENDL ] );
+ end
+end
+fwrite( FID, ENDL );
+
+if length(legendobj) > 0
+ legentries = get(legendobj, 'String');
+ if length(legentries) > 0
+ legstr = ['\legend{%' ENDL TAB ];
+ for i = 1:length(legentries)
+ legstr = [ legstr legentries{i} '\\%' ENDL ];
+ if i ~= length(legentries)
+ legstr = [ legstr TAB ];
+ end
+ end
+ legstr = [ legstr '}%' ENDL ];
+ fwrite( FID, legstr );
+ end
+end
+
+xpointformat = '%f';
+ypointformat = '%f';
+if xislog
+ xpointformat = '%e';
+end
+if yislog
+ ypointformat = '%e';
+end
+
+for i = 1:length(lineobjs)
+
+ x = get(lineobjs(i), 'XData');
+ y = get(lineobjs(i), 'YData');
+ z = get(lineobjs(i), 'ZData');
+
+ if size(x,1) > 1
+ disp( ['line element ' num2str(i) ' skipped: size ' num2str(size(x)) ' not supported']);
+ end
+ if abs(max(z) > 0)
+ disp( ['line element ' num2str(i) ' skipped: only 2d-plots supported up to now']);
+ end
+
+ if size(x,2) > parser.Results.maxpoints
+ % we need to re-interpolate the data!
+ q = find( diff(x) < 0 );
+ if length(q)
+ % parametric plot x(t), y(t), z(t).
+ % we assume t = 1:size(x,2)
+ X = 1:parser.Results.maxpoints;
+ x = interp1( 1:size(x,2),x, X);
+ y = interp1( 1:size(y,2),y, X);
+ z = interp1( 1:size(z,2),z, X);
+
+ else
+ % a normal plot y(x):
+ X = linspace( min(x), max(x), parser.Results.maxpoints );
+ y = interp1( x,y, X );
+ x = X;
+ end
+ end
+
+ coordstr = [];
+ for j = 1:size(x,2)
+ coordstr = [coordstr sprintf(['\t(' xpointformat ',\t' ypointformat ')\n'], x(j), y(j)) ];
+ end
+
+ addplotoptstr = [];
+ if parser.Results.styles
+ markOpts = {};
+ mark = [];
+ linestyle = [];
+ color = [];
+
+ C = matlabColorToPGFColor( get(lineobjs(i), 'Color') );
+ if length(C)
+ color = [ 'color=' C ];
+ end
+
+ L = get(lineobjs(i), 'LineStyle' );
+ switch L
+ case 'none'
+ linestyle = 'only marks';
+ case '-'
+ linestyle = [];
+ case ':'
+ linestyle = 'densely dotted';
+ case '-:'
+ linestyle = 'dash pattern=on 2pt off 3pt on 1pt off 3pt]';
+ case '--'
+ linestyle = 'densely dashed';
+ end
+
+ M = get(lineobjs(i), 'Marker');
+ switch M
+ case '.'
+ mark = '*';
+ markOpts = [ markOpts 'scale=0.1' ];
+ case 'o'
+ mark = '*';
+ case 'x'
+ mark = 'x';
+ case '+'
+ mark = '+';
+ case '*'
+ mark = 'asterisk';
+ case 'square'
+ mark = 'square*';
+ case 'diamond'
+ mark = 'diamond*';
+ case '^'
+ mark = 'triangle*';
+ case 'v'
+ mark = 'triangle*';
+ markOpts = [ markOpts 'rotate=180' ];
+ case '<'
+ mark = 'triangle*';
+ markOpts = [ markOpts 'rotate=90' ];
+ case '>'
+ mark = 'triangle*';
+ markOpts = [ markOpts 'rotate=270' ];
+ case 'pentagramm'
+ mark = 'pentagon*';
+ case 'hexagram'
+ mark = 'oplus*';
+ end
+
+ M = matlabColorToPGFColor( get(lineobjs(i), 'MarkerFaceColor') );
+ if length(M)
+ markOpts = [ markOpts ['fill=' M] ];
+ end
+
+ M = matlabColorToPGFColor( get(lineobjs(i), 'MarkerEdgeColor') );
+ if length(M)
+ markOpts = [ markOpts ['draw=' M] ];
+ end
+
+ if length(color)
+ if length(addplotoptstr)
+ addplotoptstr = [addplotoptstr ',' ];
+ end
+ addplotoptstr = [ addplotoptstr color ];
+ end
+
+ if length(linestyle)
+ if length(addplotoptstr)
+ addplotoptstr = [addplotoptstr ',' ];
+ end
+ addplotoptstr = [ addplotoptstr linestyle ];
+ end
+
+ if length(mark)
+ if length(addplotoptstr)
+ addplotoptstr = [addplotoptstr ',' ];
+ end
+ addplotoptstr = [ addplotoptstr [ 'mark=' mark ] ];
+
+ if length(markOpts)
+ markOptsStr = 'mark options={';
+ for q = 1:length(markOpts)
+ if q > 1
+ markOptsStr = [markOptsStr ',' ];
+ end
+ markOptsStr = [ markOptsStr markOpts{q} ];
+ end
+ markOptsStr = [ markOptsStr '}' ];
+
+ addplotoptstr = [ addplotoptstr ',' markOptsStr ];
+ end
+ end
+
+
+ if length(addplotoptstr)
+ addplotoptstr = [ '[' addplotoptstr ']' ];
+ end
+
+ end
+ fwrite( FID, [ ...
+ '\addplot' addplotoptstr ' plot coordinates {' ENDL coordstr '};' ENDL ] );
+
+end
+
+
+fwrite( FID, [ ...
+ '\end{axis}' ENDL ...
+ '\end{tikzpicture}%' ENDL ] );
+
+end
+
+function cstr = matlabColorToPGFColor( C )
+
+if length(C) ~= 3 | ischar(C) & strcmp(C,'none'), cstr = [];
+elseif norm( C - [0 0 1 ], 'inf' ) < 1e-10, cstr = 'blue';
+elseif norm( C - [0 1 0 ], 'inf' ) < 1e-10, cstr = 'green';
+elseif norm( C - [1 0 0 ], 'inf' ) < 1e-10, cstr = 'red';
+elseif norm( C - [0 1 1 ], 'inf' ) < 1e-10, cstr = 'cyan';
+elseif norm( C - [1 0 1 ], 'inf' ) < 1e-10, cstr = 'magenta';
+elseif norm( C - [1 1 0 ], 'inf' ) < 1e-10, cstr = 'yellow';
+elseif norm( C - [0 0 0 ], 'inf' ) < 1e-10, cstr = 'black';
+elseif norm( C - [1 1 1 ], 'inf' ) < 1e-10, cstr = 'white';
+else
+ cstr= 'blue'; % FIXME
+% cstr = [ '{rgb:red,' num2str( floor( C(1)*100) ) ';green,' num2str(floor(C(2)*100)) ';blue,' num2str(floor(C(3)*100)) '}' ];
+end
+
+end
diff --git a/Master/texmf-dist/doc/generic/pgfplots/ext_scripts/matlab2pgfplots.sh b/Master/texmf-dist/doc/generic/pgfplots/ext_scripts/matlab2pgfplots.sh
new file mode 100644
index 00000000000..9bc84642506
--- /dev/null
+++ b/Master/texmf-dist/doc/generic/pgfplots/ext_scripts/matlab2pgfplots.sh
@@ -0,0 +1,80 @@
+#!/bin/sh
+
+
+CONVERT_STYLES=1
+CONVERT_AXES=1
+OUTFILE=""
+MAXPOINTS=100000
+
+function echoHelp()
+{
+ echo -e \
+ "matlab2pgfplots.sh [--maxpoints N] [--styles [0|1] ] [ --axes [0|1] ] [ -o OUTFILE ] INFILE ...\n"\
+ "converts Matlab figures (.fig-files) to pgfplots-files (.pgf-files).\n"\
+ "This script is a front-end for matlab2pgfplots.m (which needs to be in matlab's search path)\n"\
+ "type\n"\
+ " >> help matlab2pgfplots\n"\
+ "at your matlab prompt for more information.\n"
+ exit 0
+}
+
+LONGOPTS="styles:,axes:,help,maxpoints:"
+SHORTOPTS="o:"
+ARGS=`getopt -l "$LONGOPTS" "$SHORTOPTS" "$@"`
+if [ $? -ne 0 ]; then
+ echo "`basename $0`: Could not process command line arguments. Use the '--help' option for documentation."
+ exit 1
+fi
+
+eval set -- "$ARGS"
+while [ $# -gt 0 ]; do
+ ARG=$1
+ # echo "PROCESSING OPTION '$ARG' (next = $@)"
+ case "$ARG" in
+ --maxpoints) shift; MAXPOINTS=$1; shift;;
+ --styles) shift; CONVERT_STYLES="$1"; shift;;
+ --axes) shift; CONVERT_AXES="$1"; shift;;
+ -o) shift; OUTFILE="$1"; shift;;
+ --help) shift; echoHelp;;
+ --) shift; break;;
+ *) break;
+ esac
+done
+
+if [ $# -eq 0 ]; then
+ echo "No input files specified."
+ exit 1
+fi
+
+HAS_OUTFILE=0
+if [ $# -gt 1 -a -n "$OUTFILE" ]; then
+ HAS_OUTFILE=1
+fi
+
+for A; do
+ INFILE="$A"
+ if [ $HAS_OUTFILE -eq 0 ]; then
+ OUTFILE="${INFILE%%.*}.pgf"
+ fi
+ echo "$INFILE -> $OUTFILE ... "
+
+ M_LOGFILE=`mktemp`
+ matlab -nojvm -nodesktop -nosplash 1>/dev/null 2>&1 -logfile $M_LOGFILE <<-EOF
+ f=hgload( '$INFILE' );
+ matlab2pgfplots( '$OUTFILE', 'fig', f, 'styles', $CONVERT_STYLES, 'axes', $CONVERT_AXES, 'maxpoints', $MAXPOINTS );
+ exit
+ EOF
+ grep -q "Error" $M_LOGFILE
+ CODE=$?
+ if [ $CODE -eq 0 ]; then
+ echo "Matlab output:" 1>&2
+ cat $M_LOGFILE 1>&2
+ CODE=1
+ else
+ CODE=0
+ fi
+ rm -f $M_LOGFILE
+ if [ $CODE -ne 0 ]; then
+ exit $CODE
+ fi
+done
diff --git a/Master/texmf-dist/doc/generic/pgfplots/ext_scripts/pgf2pdf.sh b/Master/texmf-dist/doc/generic/pgfplots/ext_scripts/pgf2pdf.sh
new file mode 100644
index 00000000000..027a6157b77
--- /dev/null
+++ b/Master/texmf-dist/doc/generic/pgfplots/ext_scripts/pgf2pdf.sh
@@ -0,0 +1,282 @@
+#!/bin/sh
+
+TEX_FILE=""
+TEX_LOG_FILE=""
+
+TEX_DEFINES=""
+
+OLD_DIR=`pwd`
+
+DRIVER="pdftex"
+
+ALSO_EPS_OUTPUT=0
+WARN_ONLY_IF_TEXFILE_DOESNOT_INCLUDE_TARGET=0
+VERBOSE_LEVEL=0
+
+function dumpHelp() {
+ echo -e \
+ "`basename $0` [OPTIONS] [--texdefs <defsfile> | --mainfile <latexmainfile>.tex ] [plot1.pgf plot2.pgf .... plotn.pgf]\n"\
+ "converts each plot*.pgf to plot*.pdf.\n"\
+ "This is done by running \n"\
+ " latex --jobname plot1 latexmainfile\n"\
+ "for each single plot. See the pgfmanual section \"Externalizing graphics\".\n"\
+ "Options:\n"\
+ "--eps\n"\
+ " will also produce eps output files.\n"\
+ "--driver D\n"\
+ " will use either \"dvipdfm\", \"dvips\" or \"pdflatex\"\n"\
+ " please note that only pdflatex works without additional\n"\
+ " work.\n"\
+ "--mainfile FILE\n"\
+ " A tex-file which has been configured for externalized graphics.\n"\
+ " Two conditions must be met to perform the conversion of\n"\
+ " \"plot.pgf\" -> \"plot.pdf\":\n"\
+ " 1. FILE needs the command\n"\
+ " \pgfrealjobname{FILE}\n"\
+ " (see the pgf manual for details)\n"\
+ " 2. It needs to include \"plot.pgf\" somewhere (using \input{plot.pgf})\n"\
+ "\n"\
+ "--warnonly\n"\
+ " Use this flag if the argument of --mainfile does not contain\n"\
+ " \input{TARGET.pgf},\n"\
+ " i.e. if (2.) is not fulfilled. In this case, the conversion for this\n"\
+ " input file will be skipped.\n"\
+ "\n"\
+ "--texdefs FILE\n"\
+ " Generates a temporary tex-file\n"\
+ " \documentclass{article}\n"\
+ " \input{FILE}\n"\
+ " \begin{document}\n"\
+ " \input{plot1.pgf}\n"\
+ " \end{document}\n"\
+ " and converts this one to pdf.\n"\
+ " If FILE is '-', the input step is omitted.\n"
+ "-v\n"\
+ " each -v option increases the verbosity.\n"\
+ ""
+ exit 0;
+}
+
+
+LONGOPTS="mainfile:,eps,driver:,texdefs:,warnonly"
+SHORTOPTS="f:t:v"
+ARGS=`getopt -l "$LONGOPTS" "$SHORTOPTS" "$@"`
+if [ $? -ne 0 ]; then
+ echo "`basename $0`: Could not process command line arguments. Use the '--help' option for documentation."
+ exit 1
+fi
+
+eval set -- "$ARGS"
+while [ $# -gt 0 ]; do
+ ARG=$1
+ # echo "PROCESSING OPTION '$ARG' (next = $@)"
+ case "$ARG" in
+ --texdefs|-t) shift; TEX_DEFINES="$1"; shift;;
+ --driver) shift; DRIVER="$1"; shift;;
+ --mainfile|-f) shift; TEX_FILE="$1"; TEX_LOG_FILE="${1%%.tex}.log"; shift;;
+ --eps) shift; ALSO_EPS_OUTPUT=1;;
+ --warnonly) shift; WARN_ONLY_IF_TEXFILE_DOESNOT_INCLUDE_TARGET=1;;
+ -v) shift; VERBOSE_LEVEL=$((VERBOSE_LEVEL+1));;
+ --) shift; break;;
+ *) break;
+ esac
+done
+if [ -n "${TEX_DEFINES}" ]; then
+ if [ "${TEX_DEFINES:0:1}" != "/" ]; then
+ TEX_DEFINES=`pwd`/${TEX_DEFINES}
+ fi
+fi
+
+
+if [ $# -ne 0 ]; then
+ PGF_FILES=("$@")
+elif [ -n "${TEX_LOG_FILE}" ]; then
+ # search for lines with
+ # (XXXX.pgf
+ PGF_FILES=(`sed -n '{s/.*(\([a-zA-Z0-9._-+^~]\+\.pgf\).*/\1/g;T ende;p};: ende' < $TEX_LOG_FILE`)
+ #PGF_FILES=(./errplot_L2.pgf)
+else
+ echo "No input files." 1>&2
+ exit 1
+fi
+
+for A in "${PGF_FILES[@]}"; do
+ if [ ! -f "$A" ]; then
+ echo "$A not found: no such file" 1>&2
+ exit 1
+ fi
+
+ CONTINUE_ON_ERROR=0
+
+ TARGET_FILE=$(sed -n '{s/.*\\beginpgfgraphicnamed{\(.*\)}.*/\1/g;T ende;p};: ende' < "$A")
+ if [ $? -ne 0 -o -z "$TARGET_FILE" ]; then
+ echo "There is no valid \\beginpgfgraphicnamed{TARGET}...\\endpgfgraphicnamed command in $A. Can't be exported to pdf. Please see the PGF manual for details." 1>&2
+ exit 1
+ fi
+ echo "processing \"$A\"" 1>&2
+
+ CMD="latex"
+ case $DRIVER in
+ pdftex|pdflatex)
+ CMD="pdflatex"
+ ;;
+ esac
+
+ if [ -z "${TEX_DEFINES}" ]; then
+ # LaTeX cannot write into a \jobname in another directory.
+ # But the TEX_FILE and $A may not necessarily be in the same directory!
+ #
+ # So, we have to build a work-around which simulates a \jobname in the directory of TEX_FILE
+ # which does not fool \beginpgfgraphicnamed
+
+ # modify the input file A:
+ ORIGINAL_FILE="$A.orig"
+ mv "$A" "$ORIGINAL_FILE" || exit 1
+ cat - "$ORIGINAL_FILE" >"$A" <<-EOF
+ \let\tmpXXXXXZEUGoldjobname=\jobname
+ \def\jobname{${TARGET_FILE}}%
+ \message{PGF2PDF: TEX HAS ENTERED THE TARGET FILE...}%
+ EOF
+ cat >> "$A" <<-EOF
+ \let\jobname=\tmpXXXXXZEUGoldjobname
+ EOF
+
+ cd `dirname "${TEX_FILE}"`
+
+ # generate a temp \jobname in the current directory:
+ TMP_JOB_FILE=`mktemp ./tmppgf2pdfXXXXXX`
+ if [ $? -ne 0 ]; then exit 1; fi
+ rm -f "$TMP_JOB_FILE"
+
+ $CMD --interaction nonstopmode --jobname "$TMP_JOB_FILE" "${TEX_FILE}" 1>/dev/null
+ CODE=$?
+
+ INTERM_EXTENSION="dvi"
+ case $DRIVER in
+ pdftex|pdflatex)
+ INTERM_EXTENSION="pdf"
+ ;;
+ dvipdfm)
+ INTERM_EXTENSION="dvi"
+ ;;
+ dvips)
+ INTERM_EXTENSION="dvi"
+ ;;
+ esac
+ if [ ! -s "$TMP_JOB_FILE.$INTERM_EXTENSION" ]; then
+ if [ $VERBOSE_LEVEL -ge 1 ]; then
+ if [ $WARN_ONLY_IF_TEXFILE_DOESNOT_INCLUDE_TARGET -eq 1 ]; then
+ echo -n "WARNING: ";
+ else
+ echo -n "ERROR: ";
+ fi
+ echo -e "running\n"\
+ " '$CMD --jobname $TMP_JOB_FILE $TEX_FILE'\n"\
+ "resulted in a zero-size file \"$TMP_JOB_FILE.$INTERM_EXTENSION\"!\n"\
+ "Please check\n"\
+ "- if $TEX_FILE contains\n"\
+ " \pgfrealjobname{`basename ${TEX_FILE%%.tex}`}\n"\
+ "- if $TEX_FILE contains\n"\
+ " \input{$A}\n"\
+ "\n"\
+ "You may take a look at\n\t$TARGET_FILE.log\n for more information.\n"\
+ "Maybe `basename $0` --texdefs is more appropriate for this application?\n"\
+ "It doesn't need \input{}...\n"\
+ 1>&2
+ fi
+
+ CODE=1
+ if [ $WARN_ONLY_IF_TEXFILE_DOESNOT_INCLUDE_TARGET -eq 1 ]; then
+ CONTINUE_ON_ERROR=1
+ fi
+ rm -f $TMP_JOB_FILE.{$INTERM_EXTENSION,pdf}
+ fi
+
+
+ # FIXME: this here may clash if A and TARGET_FILE have inconsistent paths!
+ mv "$ORIGINAL_FILE" "$A" || exit 1
+ for QQ in $TMP_JOB_FILE.*; do
+ if [ "$TARGET_FILE.${QQ##*.}" != "$A" ]; then
+ mv "$QQ" "$TARGET_FILE.${QQ##*.}" || exit 1
+ fi
+ done
+
+ cd "$OLD_DIR"
+ else
+ # Die Idee hier ist wie folgt:
+ # - Erstelle ein fast leeres Tex-File
+ # - darin steht NUR
+ # \input $TEX_DEFINES
+ # und
+ # \input $A
+ # - das TeX-file wird mit pgflatex uebersetzt
+ # - die ausgabe wird nach $TARGET_FILE geschrieben
+ # - fertig.
+ #
+ # BUGS:
+ # - TARGET_FILE != A wird nicht funktionieren (nur die endungen natuerlich)
+ DRIVER="pdftex"
+ cd `dirname "$A"`
+ BASE=`basename $TARGET_FILE`
+ TMP_TEX_FILE=`mktemp tmp_${BASE}_XXXXXX`
+ mv "$TMP_TEX_FILE" "${TMP_TEX_FILE}.tex"
+ TMP_TEX_FILE="$TMP_TEX_FILE.tex"
+ rm -f "${BASE}.pdf"
+
+ cat >"$TMP_TEX_FILE" <<-EOF
+ \documentclass{report}
+
+ \input{${TEX_DEFINES}}
+
+ %\def\pgfsysdriver{pgfsys-dvipdfm.def}
+ %\def\pgfsysdriver{pgfsys-pdftex.def}
+ \usepackage{tikz}
+ \pgfrealjobname{${TMP_TEX_FILE%%.tex}}
+ \begin{document}
+ \let\oldjobname=\jobname%
+ % make sure that PGF recognises that jobname==target file name
+ % even if --jobname has a different path.
+ \def\jobname{${TARGET_FILE}}%
+ \input{`basename $A`}%
+ \let\jobname=\oldjobname
+ \end{document}
+ EOF
+ $CMD --interaction nonstopmode --jobname "$BASE" "${TMP_TEX_FILE}" 1>/dev/null
+ CODE=$?
+ if [ $CODE -eq 0 ]; then
+ rm -f "$TMP_TEX_FILE"
+ fi
+ cd $OLD_DIR
+ fi
+
+ if [ $CODE -ne 0 ]; then
+ rm -f "${TARGET_FILE}.pdf"
+ if [ $CONTINUE_ON_ERROR -eq 1 ]; then
+ echo "WARNING: $A SKIPPED [use -v for messages]." 1>&2
+ CODE=0
+ continue
+ else
+ echo -e "FAILED: could not convert\n\t$A\n->\t$TARGET_FILE.pdf" 1>&2;
+ exit 1;
+ fi
+ fi
+ CMD=""
+ case $DRIVER in
+ dvipdfm)
+ dvipdfm -o ${TARGET_FILE}.pdf "${TARGET_FILE}.dvi" || exit 1
+ pdfcrop "${TARGET_FILE}.pdf" "${TARGET_FILE}.pdf" || exit 1
+ ;;
+ dvips)
+ dvipdfm -o ${TARGET_FILE}.ps "${TARGET_FILE}.dvi" || exit 1
+ ;;
+ esac
+
+ if [ $ALSO_EPS_OUTPUT -eq 1 ]; then
+ pdftops -f 1 -l 1 -eps "${TARGET_FILE}.pdf" "${TARGET_FILE}.eps"
+ if [ $? -ne 0 ]; then
+ echo "Conversion pdf -> eps FAILED!" 1>&2
+ exit 1
+ fi
+ fi
+done
+cd $OLD_DIR
diff --git a/Master/texmf-dist/doc/generic/pgfplots/test/liststructuretest/liststructuretest.tex b/Master/texmf-dist/doc/generic/pgfplots/test/liststructuretest/liststructuretest.tex
new file mode 100644
index 00000000000..408b6d4cfb6
--- /dev/null
+++ b/Master/texmf-dist/doc/generic/pgfplots/test/liststructuretest/liststructuretest.tex
@@ -0,0 +1,164 @@
+\documentclass[a4paper]{article}
+\usepackage{german}
+\usepackage[utf8]{inputenc} % erlaubt direkte Nutzung von Umlauten
+
+% \usepackage[a4paper,noheadfoot,pdftex,left=0.8cm,right=1cm,top=0.8cm,bottom=0.8cm]{geometry}
+% \usepackage{color}
+% \usepackage{colortbl}
+% \usepackage{longtable}
+% \usepackage[a4paper,colorlinks=true]{hyperref} % Querverweise etc. option pdftex,dvipdfm?
+% \usepackage{graphicx}
+% \usepackage[draft]{graphicx}
+% \usepackage{listings} % fuer codefragmente jeder art
+\usepackage[intlimits]{amsmath}
+\usepackage{amssymb}
+\usepackage{amsfonts}
+% \usepackage{amsthm}
+\usepackage{bibgerm}
+%\usepackage{simplelist}
+
+\usepackage{pgf}
+\makeatletter
+\input pgfplotsliststructure.code.tex
+\input pgfplotsarray.code.tex
+\makeatother
+
+% fuer endvironment 'sidewaysfigure' bspw
+% \usepackage{rotating}
+
+%\pdfinfo {
+% /Author (Christian Feuersaenger)
+%}
+
+%%
+% My user defined commands ...
+%
+\usepackage{mymath}
+\usepackage{myext}
+
+% von Alex: A4-Groesse, symmetrische Seitenraender.
+% \usepackage{mya4sym}
+
+
+% figure einstellungen:
+%\renewcommand{\topfraction}{0.85}
+%\renewcommand{\textfraction}{0.06}
+%\renewcommand{\floatpagefraction}{0.8}
+
+\def\testfile#1{\chapter{#1}}
+\def\testsection#1{\message{STARTING TEST SECTION '#1'}\section{#1}}
+\def\testsubsection#1{\message{STARTING TEST SUBSECTION '#1'}\subsection{#1}}
+\def\testsubsubsection#1{\message{STARTING TEST SUBSUBSECTION '#1'}\subsubsection{#1}}
+
+
+\author{Christian Feuersänger}
+%\title{}
+
+\begin{document}
+%\maketitle
+\testsection{pgfplotslist test}
+\message{pgfplotslist test}%
+{
+\tracingcommands=2
+\tracingmacros=2
+\pgfplotslistnewempty\probe
+\pgfplotslistpushback eins\to\probe
+\pgfplotslistpushback [probe]\to\probe
+\pgfplotslistpushback [probe2]\to\probe
+\pgfplotslistpushback [probe3]\to\probe
+
+Size: \pgfplotslistsize\probe\to{\count0}\the\count0
+
+Contents:
+
+\pgfplotslistforeach\probe\as\curlistelem{\curlistelem \par}
+
+\pgfplotslistnew\foolist{Eins\\Zwei\\Drei\\}%
+\pgfplotslistforeach\foolist\as\foo{Element \foo\par}%
+
+\testsubsection{select}
+\count1=1
+Element \the\count1: \pgfplotslistselect\count1\of\probe\to\elem\elem
+
+Element 3: \pgfplotslistselect3\of\probe\to\elem\elem
+
+count1 is now=\the\count1
+\vskip1cm
+
+\testsubsection{listpopfront}
+\pgfplotslistpopfront\probe\to\first
+first: \first
+
+remaining size: \pgfplotslistsize\probe\to{\count0}\the\count0
+
+\pgfplotslistpopfront\probe\to\first
+first: \first
+
+remaining size: \pgfplotslistsize\probe\to{\count0}\the\count0
+
+
+\testsubsection{list concat}
+new list:
+\pgfplotslistnew\foolist{First Element\\Second Element\\Third Element\\}
+\pgfplotslistnew\foolistX{Eins\\Zwei\\}
+
+Contents:
+\pgfplotslistforeach\foolist\as\curlistelem{\curlistelem \par}
+
+\pgfplotslistconcat\third=\foolist&\foolistX
+
+Result of concat:
+\pgfplotslistforeach\third\as\curlistelem{\curlistelem \par}
+}
+
+\section{pgfplotsarray test}
+\message{pgfplotsarray test}
+{
+\tracingcommands=2
+\tracingmacros=2
+
+\pgfplotsarraynewempty\probe
+\pgfplotsarraypushback eins\to\probe
+\pgfplotsarraypushback [probe]\to\probe
+\pgfplotsarraypushback [probe2]\to\probe
+\pgfplotsarraypushback [probe3]\to\probe
+
+Size: `\pgfplotsarraysize\probe\to{\count0}\the\count0'
+
+Content:
+
+\pgfplotsarrayforeach\probe\as\curarrayelem{\curarrayelem \par}
+
+\testsubsection{Select}
+Test list:
+
+\pgfplotsarraynew\fooarray{Eins\\Zwei\\Drei\\}%
+\pgfplotsarrayforeach\fooarray\as\foo{Element \foo\par}%
+
+Getting elements:
+
+\count1=1
+Element \the\count1: \pgfplotsarrayselect\count1\of\fooarray\to\elem\elem
+
+Element 2: \pgfplotsarrayselect2\of\fooarray\to\elem\elem
+
+\vskip1cm
+
+
+\testsubsection{Copy}
+
+Copy:
+\pgfplotsarraynew\fooarray{Eins\\Zwei\\Drei\\}%
+Source: \pgfplotsarrayforeach\fooarray\as\foo{Element \foo\par}%
+
+\pgfplotsarraycopy\fooarray\to\fooarrayX
+
+Copy: \pgfplotsarrayforeach\fooarrayX\as\foo{Element \foo\par}%
+}
+
+
+\bibliographystyle{gerabbrv} %gerapali} %gerabbrv} %gerunsrt.bst} %gerabbrv}% gerplain}
+% \bibliography{literatur.bib}
+\end{document}
+
+
diff --git a/Master/texmf-dist/doc/generic/pgfplots/test/numtabletest/numtabletest.generated1.tex b/Master/texmf-dist/doc/generic/pgfplots/test/numtabletest/numtabletest.generated1.tex
new file mode 100644
index 00000000000..54c32337a51
--- /dev/null
+++ b/Master/texmf-dist/doc/generic/pgfplots/test/numtabletest/numtabletest.generated1.tex
@@ -0,0 +1 @@
+\begin {tabular}{ccccccccc}\toprule G&Basis&dof&L2&A&Lmax&cgiter&maxlevel&eps\\\midrule \rowcolor [gray]{0.9}\pgfutilensuremath {5}&\pgfutilensuremath {5}&\pgfutilensuremath {5}&\pgfutilensuremath {8.31\cdot 10^{-2}}&\pgfutilensuremath {0}&\pgfutilensuremath {0.18}&\pgfutilensuremath {2}&\pgfutilensuremath {2}&\pgfutilensuremath {-1}\\\pgfutilensuremath {17}&\pgfutilensuremath {17}&\pgfutilensuremath {17}&\pgfutilensuremath {2.55\cdot 10^{-2}}&\pgfutilensuremath {0}&\pgfutilensuremath {3.76\cdot 10^{-2}}&\pgfutilensuremath {5}&\pgfutilensuremath {3}&\pgfutilensuremath {-1}\\\rowcolor [gray]{0.9}\pgfutilensuremath {49}&\pgfutilensuremath {49}&\pgfutilensuremath {49}&\pgfutilensuremath {7.41\cdot 10^{-3}}&\pgfutilensuremath {0}&\pgfutilensuremath {1.49\cdot 10^{-2}}&\pgfutilensuremath {11}&\pgfutilensuremath {4}&\pgfutilensuremath {-1}\\\pgfutilensuremath {129}&\pgfutilensuremath {129}&\pgfutilensuremath {129}&\pgfutilensuremath {2.10\cdot 10^{-3}}&\pgfutilensuremath {0}&\pgfutilensuremath {4.23\cdot 10^{-3}}&\pgfutilensuremath {26}&\pgfutilensuremath {5}&\pgfutilensuremath {-1}\\\rowcolor [gray]{0.9}\pgfutilensuremath {321}&\pgfutilensuremath {321}&\pgfutilensuremath {321}&\pgfutilensuremath {5.87\cdot 10^{-4}}&\pgfutilensuremath {0}&\pgfutilensuremath {1.31\cdot 10^{-3}}&\pgfutilensuremath {43}&\pgfutilensuremath {6}&\pgfutilensuremath {-1}\\\pgfutilensuremath {769}&\pgfutilensuremath {769}&\pgfutilensuremath {769}&\pgfutilensuremath {1.62\cdot 10^{-4}}&\pgfutilensuremath {0}&\pgfutilensuremath {3.89\cdot 10^{-4}}&\pgfutilensuremath {49}&\pgfutilensuremath {7}&\pgfutilensuremath {-1}\\\rowcolor [gray]{0.9}\pgfutilensuremath {1{,}793}&\pgfutilensuremath {1{,}793}&\pgfutilensuremath {1{,}793}&\pgfutilensuremath {4.44\cdot 10^{-5}}&\pgfutilensuremath {0}&\pgfutilensuremath {1.13\cdot 10^{-4}}&\pgfutilensuremath {52}&\pgfutilensuremath {8}&\pgfutilensuremath {-1}\\\pgfutilensuremath {4{,}097}&\pgfutilensuremath {4{,}097}&\pgfutilensuremath {4{,}097}&\pgfutilensuremath {1.21\cdot 10^{-5}}&\pgfutilensuremath {0}&\pgfutilensuremath {3.20\cdot 10^{-5}}&\pgfutilensuremath {56}&\pgfutilensuremath {9}&\pgfutilensuremath {-1}\\\rowcolor [gray]{0.9}\pgfutilensuremath {9{,}217}&\pgfutilensuremath {9{,}217}&\pgfutilensuremath {9{,}217}&\pgfutilensuremath {3.26\cdot 10^{-6}}&\pgfutilensuremath {0}&\pgfutilensuremath {8.98\cdot 10^{-6}}&\pgfutilensuremath {59}&\pgfutilensuremath {10}&\pgfutilensuremath {-1}\\\bottomrule \end {tabular}
diff --git a/Master/texmf-dist/doc/generic/pgfplots/test/numtabletest/numtabletest.tex b/Master/texmf-dist/doc/generic/pgfplots/test/numtabletest/numtabletest.tex
new file mode 100644
index 00000000000..65eee3fd451
--- /dev/null
+++ b/Master/texmf-dist/doc/generic/pgfplots/test/numtabletest/numtabletest.tex
@@ -0,0 +1,211 @@
+\documentclass[a4paper]{article}
+
+\usepackage[intlimits]{amsmath}
+\usepackage{amssymb}
+\usepackage{amsfonts}
+\usepackage{ifpdf}
+\usepackage{listings}
+\usepackage{rotating}
+
+\usepackage{array}
+\usepackage{booktabs}
+\usepackage{colortbl}
+
+\lstset{basicstyle=\ttfamily\footnotesize,tabsize=16}
+
+\ifpdf
+\else
+\def\pgfsysdriver{pgfsys-dvipdfm.def}
+\fi
+\usepackage{pgfplots}
+
+\parindent=0pt
+
+\def\testsection#1{\message{STARTING TEST SECTION '#1'}\section{#1}}
+\def\testsubsection#1{\message{STARTING TEST SUBSECTION '#1'}\subsection{#1}}
+\def\testsubsubsection#1{\message{STARTING TEST SUBSUBSECTION '#1'}\subsubsection{#1}}
+
+\author{Christian Feuers\"anger}
+\title{Test cases for pgfplotstable}
+
+\begin{document}
+\maketitle
+
+\testsection{Reading a tab-separated table with many entries}
+\begin{sidewaystable}
+ \lstinputlisting{numtabletestdata}
+\end{sidewaystable}
+\testsubsection{Reading it...}
+\tracingmacros=2\tracingcommands=2
+\pgfplotstableread{numtabletestdata}\table
+\tracingmacros=0\tracingcommands=0
+
+\testsubsection{Quering colnames...}
+%\tracingmacros=2\tracingcommands=2
+\pgfplotstablegetcolumnlist\table\to\cols
+\pgfplotslistforeach\cols\as\col{Column ``\col''\par}%
+%\tracingmacros=0\tracingcommands=0
+
+\testsubsection{Quering column content by column name}
+%\tracingmacros=2\tracingcommands=2
+\pgfplotstablegetcolumnbyname L2\of\table\to\colcontent
+\pgfplotslistforeach\colcontent\as\colc{Row data: ``\colc''\par}%
+%\tracingmacros=0\tracingcommands=0
+
+\testsubsection{Quering column content by column name for all cols}
+\pgfplotstablegetcolumnlist\table\to\cols
+\pgfplotslistforeach\cols\as\col{\textbf{Column ``\col''}\par
+ \pgfplotstablegetcolumnbyname\col\of\table\to\colcontent
+ \pgfplotslistforeach\colcontent\as\colc{Row data: ``\colc''\par}%
+}%
+
+\testsection{Reading gnuplot output for use in 'plot file'}
+\lstinputlisting{numtabletestdata2.gnuplot}
+%\tracingmacros=2\tracingcommands=2
+\pgfplotstableread{numtabletestdata2.gnuplot}\table
+%\tracingmacros=0\tracingcommands=0
+
+\testsubsection{Quering column content by column name for all cols}
+\pgfplotstablegetcolumnlist\table\to\cols
+\pgfplotslistforeach\cols\as\col{\textbf{Column ``\col''}\par
+ \pgfplotstablegetcolumnbyname\col\of\table\to\colcontent
+ \pgfplotslistforeach\colcontent\as\colc{Row data: ``\colc''\par}%
+}%
+
+\testsection{Table typesetting}
+%
+% Set this here globally:
+\pgfplotstableset{/pgf/number format/sci zerofill}% any number in SCI format shall use zero filling.
+
+\pgfplotstableread{numtabletestdata}\table
+
+\testsubsection{no options at all}
+\pgfplotstabletypeset\table
+
+\testsubsection{Basis, L2, no options}
+%\tracingmacros=2\tracingcommands=2
+\pgfplotstabletypeset[columns={Basis,L2}]\table
+%\tracingmacros=0\tracingcommands=0
+
+\testsubsection{some column adjustments}
+\pgfplotstabletypeset[
+ columns={maxlevel,Basis,L2,cgiter},
+ columns/maxlevel/.style={column name=$l_\infty$,column type=r},
+ columns/cgiter/.style={column name={CG}},
+ columns/L2/.style={column name={$L_2$},/pgf/number format/sci subscript,/pgf/number format/sci zerofill}]
+ \table
+
+\testsubsection{some row adjustments}
+\pgfplotstabletypeset[
+ /pgf/number format/sci subscript,/pgf/number format/sci zerofill,
+ every head row/.style={before row=\toprule,after row=\midrule},
+ every last row/.style={after row=\bottomrule},
+ ]
+ \table
+
+
+\testsubsection{coloring rows}
+
+\pgfplotstabletypeset[
+ every even row/.style={before row={\rowcolor[gray]{0.9}}},
+ every head row/.style={before row=\toprule,after row=\midrule},
+ every last row/.style={after row=\bottomrule},
+ ]
+ \table
+
+\testsubsubsection{writing to numtabletest.generated1.tex}%
+\pgfplotstabletypeset[
+ outfile=numtabletest.generated1.tex,
+ every even row/.style={before row={\rowcolor[gray]{0.9}}},
+ every head row/.style={before row=\toprule,after row=\midrule},
+ every last row/.style={after row=\bottomrule},
+ ]
+ \table
+
+\testsubsubsection{loading numtabletest.generated1.tex}
+\input{numtabletest.generated1.tex}
+
+\testsubsection{Choosing columns by index}
+%\tracingmacros=2\tracingcommands=2
+\pgfplotstabletypeset[
+ columns={[index]5,dof,[index]0}
+ ]
+ \table
+%\tracingmacros=0\tracingcommands=0
+
+\testsubsection{column styles}
+\pgfplotstabletypeset[
+ every even column/.style={column type={>{\columncolor[gray]{.8}[\tabcolsep]}l}},
+ ]
+ \table
+
+\begingroup
+\testsubsection{column styles + string type}
+\pgfplotstableread{numtabletestdata2}\table
+%\tracingmacros=2\tracingcommands=2
+\pgfplotstabletypeset[
+ every first column/.style={string type,column type={@{}r|},column name=},
+ every head row/.style={after row=\hline},
+ every even column/.style={column type={>{\columncolor[gray]{.8}[\tabcolsep]}l}},
+ ]
+ \table
+\endgroup
+
+\begingroup
+\testsubsection{column styles and special characters =/,}
+\pgfplotstableread{numtabletestdata3}\table
+\pgfplotstabletypeset[
+ columns/{grad(log(dof),log(L2))}/.style={
+ column name=$L_2$ slopes,
+ /pgf/number format/fixed,
+ /pgf/number format/precision=1,
+ /pgf/number format/fixed zerofill},
+ columns/L2/.style={
+ column name=$L_2$,
+ /pgf/number format/sci
+ }
+ ]
+ \table
+
+\testsubsection{Input formats}
+\tracingmacros=2\tracingcommands=2
+{
+\pgfplotstableset{columns/head/.style={string type}}
+\testsubsubsection{comma}
+\pgfplotstabletypesetfile[col sep=comma]{numtabletestdata2.csv}
+
+\testsubsubsection{colon}
+\pgfplotstabletypesetfile[col sep=colon]{numtabletestdata2.colon}
+
+\testsubsubsection{semicolon}
+\pgfplotstabletypesetfile[col sep=semicolon]{numtabletestdata2.semicolon}
+
+\testsubsubsection{brace}
+\pgfplotstabletypesetfile[col sep=braces]{numtabletestdata2.brace}
+\tracingmacros=0\tracingcommands=0
+}
+\endgroup
+
+
+{
+\testsection{Col type}
+
+\newcolumntype{L}[1]
+ {>{\begin{pgfplotstablecoltype}[#1]}r<{\end{pgfplotstablecoltype}}}
+
+\begin{tabular}{L{int detect}L{sci,sci subscript,sci zerofill}}
+9 & 2.50000000e-01\\
+25 & 6.25000000e-02\\
+81 & 1.56250000e-02\\
+289 & 3.90625000e-03\\
+1089 & 9.76562500e-04\\
+4225 & 2.44140625e-04\\
+16641 & 6.10351562e-05\\
+66049 & 1.52587891e-05\\
+263169 & 3.81469727e-06\\
+1050625& 9.53674316e-07\\
+\end{tabular}
+
+}
+
+\end{document}
diff --git a/Master/texmf-dist/doc/generic/pgfplots/test/numtabletest/numtabletestdata b/Master/texmf-dist/doc/generic/pgfplots/test/numtabletest/numtabletestdata
new file mode 100644
index 00000000000..44f9ca74722
--- /dev/null
+++ b/Master/texmf-dist/doc/generic/pgfplots/test/numtabletest/numtabletestdata
@@ -0,0 +1,11 @@
+G Basis dof L2 A Lmax cgiter maxlevel eps
+$flags int:0 int:0 int:0 sci[subscript]:8 sci[subscript]:8 sci[subscript]:8 int:0 int:0 std:8
+5 5 5 8.31160034e-02 0.00000000e+00 1.80007647e-01 2 2 -1
+17 17 17 2.54685628e-02 0.00000000e+00 3.75580565e-02 5 3 -1
+49 49 49 7.40715288e-03 0.00000000e+00 1.49212716e-02 11 4 -1
+129 129 129 2.10192154e-03 0.00000000e+00 4.23330523e-03 26 5 -1
+321 321 321 5.87352989e-04 0.00000000e+00 1.30668515e-03 43 6 -1
+769 769 769 1.62269942e-04 0.00000000e+00 3.88658098e-04 49 7 -1
+1793 1793 1793 4.44248889e-05 0.00000000e+00 1.12651668e-04 52 8 -1
+4097 4097 4097 1.20714122e-05 0.00000000e+00 3.20339285e-05 56 9 -1
+9217 9217 9217 3.26101452e-06 0.00000000e+00 8.97617707e-06 59 10 -1
diff --git a/Master/texmf-dist/doc/generic/pgfplots/test/numtabletest/numtabletestdata2 b/Master/texmf-dist/doc/generic/pgfplots/test/numtabletest/numtabletestdata2
new file mode 100644
index 00000000000..775daaaa52a
--- /dev/null
+++ b/Master/texmf-dist/doc/generic/pgfplots/test/numtabletest/numtabletestdata2
@@ -0,0 +1,11 @@
+head G Basis dof L2 A Lmax cgiter maxlevel eps
+$flags string int int int sci:8 sci:8 sci:8 int int std:8
+one 5 5 5 8.31160034e-02 0.00000000e+00 1.80007647e-01 2 2 -1
+two 17 17 17 2.54685628e-02 0.00000000e+00 3.75580565e-02 5 3 -1
+three 49 49 49 7.40715288e-03 0.00000000e+00 1.49212716e-02 11 4 -1
+four 129 129 129 2.10192154e-03 0.00000000e+00 4.23330523e-03 26 5 -1
+five 321 321 321 5.87352989e-04 0.00000000e+00 1.30668515e-03 43 6 -1
+six 769 769 769 1.62269942e-04 0.00000000e+00 3.88658098e-04 49 7 -1
+{with space} 1793 1793 1793 4.44248889e-05 0.00000000e+00 1.12651668e-04 52 8 -1
+{eight} 4097 4097 4097 1.20714122e-05 0.00000000e+00 3.20339285e-05 56 9 -1
+nine 9217 9217 9217 3.26101452e-06 0.00000000e+00 8.97617707e-06 59 10 -1
diff --git a/Master/texmf-dist/doc/generic/pgfplots/test/numtabletest/numtabletestdata2.brace b/Master/texmf-dist/doc/generic/pgfplots/test/numtabletest/numtabletestdata2.brace
new file mode 100644
index 00000000000..0c53d2a06e5
--- /dev/null
+++ b/Master/texmf-dist/doc/generic/pgfplots/test/numtabletest/numtabletestdata2.brace
@@ -0,0 +1,11 @@
+{head} {G} {Basis} {dof} {L2} {A} {Lmax} {cgiter} {maxlevel} {eps}
+$flags {string} {int} {int} {int} {sci:8} {sci:8} {sci:8} {int} {int} {std:8}
+{one} {5} {5} {5} {8.31160034e-02} {0.00000000e+00} {1.80007647e-01} {2} {2} {-1}
+{two} {17} {17} {17} {2.54685628e-02} {0.00000000e+00} {3.75580565e-02} {5} {3} {-1}
+{three} {49} {49} {49} {7.40715288e-03} {0.00000000e+00} {1.49212716e-02} {11} {4} {-1}
+{four} {129} {129} {129} {2.10192154e-03} {0.00000000e+00} {4.23330523e-03} {26} {5} {-1}
+{five} {321} {321} {321} {5.87352989e-04} {0.00000000e+00} {1.30668515e-03} {43} {6} {-1}
+{six} {769} {769} {769} {1.62269942e-04} {0.00000000e+00} {3.88658098e-04} {49} {7} {-1}
+{with space} {1793} {1793} {1793} {4.44248889e-05} {0.00000000e+00} {1.12651668e-04} {52} {8} {-1}
+{{eight}} {4097} {4097} {4097} {1.20714122e-05} {0.00000000e+00} {3.20339285e-05} {56} {9} {-1}
+{nine} {9217} {9217} {9217} {3.26101452e-06} {0.00000000e+00} {8.97617707e-06} {59} {10} {-1}
diff --git a/Master/texmf-dist/doc/generic/pgfplots/test/numtabletest/numtabletestdata2.colon b/Master/texmf-dist/doc/generic/pgfplots/test/numtabletest/numtabletestdata2.colon
new file mode 100644
index 00000000000..a69d4987f3d
--- /dev/null
+++ b/Master/texmf-dist/doc/generic/pgfplots/test/numtabletest/numtabletestdata2.colon
@@ -0,0 +1,10 @@
+head:G:Basis:dof:L2:A:Lmax:cgiter:maxlevel:eps
+one:5:5:5:8.31160034e-02:0.00000000e+00:1.80007647e-01:2:2:-1
+two:17:17:17:2.54685628e-02:0.00000000e+00:3.75580565e-02:5:3:-1
+three:49:49:49:7.40715288e-03:0.00000000e+00:1.49212716e-02:11:4:-1
+four:129:129:129:2.10192154e-03:0.00000000e+00:4.23330523e-03:26:5:-1
+five:321:321:321:5.87352989e-04:0.00000000e+00:1.30668515e-03:43:6:-1
+six:769:769:769:1.62269942e-04:0.00000000e+00:3.88658098e-04:49:7:-1
+{with space}:1793:1793:1793:4.44248889e-05:0.00000000e+00:1.12651668e-04:52:8:-1
+{eight}:4097:4097:4097:1.20714122e-05:0.00000000e+00:3.20339285e-05:56:9:-1
+nine:9217:9217:9217:3.26101452e-06:0.00000000e+00:8.97617707e-06:59:10:-1
diff --git a/Master/texmf-dist/doc/generic/pgfplots/test/numtabletest/numtabletestdata2.csv b/Master/texmf-dist/doc/generic/pgfplots/test/numtabletest/numtabletestdata2.csv
new file mode 100644
index 00000000000..cc712402b86
--- /dev/null
+++ b/Master/texmf-dist/doc/generic/pgfplots/test/numtabletest/numtabletestdata2.csv
@@ -0,0 +1,11 @@
+head,G,Basis,dof,L2,A,Lmax,cgiter,maxlevel,eps
+$flags string,int,int,int,sci:8,sci:8,sci:8,int,int,std:8
+one,5,5,5,8.31160034e-02,0.00000000e+00,1.80007647e-01,2,2,-1
+two,17,17,17,2.54685628e-02,0.00000000e+00,3.75580565e-02,5,3,-1
+three,49,49,49,7.40715288e-03,0.00000000e+00,1.49212716e-02,11,4,-1
+four,129,129,129,2.10192154e-03,0.00000000e+00,4.23330523e-03,26,5,-1
+five,321,321,321,5.87352989e-04,0.00000000e+00,1.30668515e-03,43,6,-1
+six,769,769,769,1.62269942e-04,0.00000000e+00,3.88658098e-04,49,7,-1
+{with space},1793,1793,1793,4.44248889e-05,0.00000000e+00,1.12651668e-04,52,8,-1
+{eight},4097,4097,4097,1.20714122e-05,0.00000000e+00,3.20339285e-05,56,9,-1
+nine,9217,9217,9217,3.26101452e-06,0.00000000e+00,8.97617707e-06,59,10,-1
diff --git a/Master/texmf-dist/doc/generic/pgfplots/test/numtabletest/numtabletestdata2.gnuplot b/Master/texmf-dist/doc/generic/pgfplots/test/numtabletest/numtabletestdata2.gnuplot
new file mode 100644
index 00000000000..1222a3c59c0
--- /dev/null
+++ b/Master/texmf-dist/doc/generic/pgfplots/test/numtabletest/numtabletestdata2.gnuplot
@@ -0,0 +1,8 @@
+#Curve 0, 20 points
+#x y type
+0.00000 0.00000 i
+0.52632 0.50235 i
+1.05263 0.86873 i
+1.57895 0.99997 i
+9.47368 -0.04889 i
+10.00000 -0.54402 i
diff --git a/Master/texmf-dist/doc/generic/pgfplots/test/numtabletest/numtabletestdata2.semicolon b/Master/texmf-dist/doc/generic/pgfplots/test/numtabletest/numtabletestdata2.semicolon
new file mode 100644
index 00000000000..97f7258d56f
--- /dev/null
+++ b/Master/texmf-dist/doc/generic/pgfplots/test/numtabletest/numtabletestdata2.semicolon
@@ -0,0 +1,11 @@
+head;G;Basis;dof;L2;A;Lmax;cgiter;maxlevel;eps
+$flags string;int;int;int;sci;8;sci;8;sci;8;int;int;std;8
+one;5;5;5;8.31160034e-02;0.00000000e+00;1.80007647e-01;2;2;-1
+two;17;17;17;2.54685628e-02;0.00000000e+00;3.75580565e-02;5;3;-1
+three;49;49;49;7.40715288e-03;0.00000000e+00;1.49212716e-02;11;4;-1
+four;129;129;129;2.10192154e-03;0.00000000e+00;4.23330523e-03;26;5;-1
+five;321;321;321;5.87352989e-04;0.00000000e+00;1.30668515e-03;43;6;-1
+six;769;769;769;1.62269942e-04;0.00000000e+00;3.88658098e-04;49;7;-1
+{with space};1793;1793;1793;4.44248889e-05;0.00000000e+00;1.12651668e-04;52;8;-1
+{eight};4097;4097;4097;1.20714122e-05;0.00000000e+00;3.20339285e-05;56;9;-1
+nine;9217;9217;9217;3.26101452e-06;0.00000000e+00;8.97617707e-06;59;10;-1
diff --git a/Master/texmf-dist/doc/generic/pgfplots/test/numtabletest/numtabletestdata3 b/Master/texmf-dist/doc/generic/pgfplots/test/numtabletest/numtabletestdata3
new file mode 100644
index 00000000000..dba7ddc5d53
--- /dev/null
+++ b/Master/texmf-dist/doc/generic/pgfplots/test/numtabletest/numtabletestdata3
@@ -0,0 +1,10 @@
+G Basis dof L2 A Lmax cgiter maxlevel eps grad(log(dof),log(L2))
+5 5 5 8.31160034e-02 0.00000000e+00 1.80007647e-01 2 2 -1 0
+17 17 17 2.54685628e-02 0.00000000e+00 3.75580565e-02 5 3 -1 -9.66510989e-01
+49 49 49 7.40715288e-03 0.00000000e+00 1.49212716e-02 11 4 -1 -1.16662631e+00
+129 129 129 2.10192154e-03 0.00000000e+00 4.23330523e-03 26 5 -1 -1.30124428e+00
+321 321 321 5.87352989e-04 0.00000000e+00 1.30668515e-03 43 6 -1 -1.39857512e+00
+769 769 769 1.62269942e-04 0.00000000e+00 3.88658098e-04 49 7 -1 -1.47240308e+00
+1793 1793 1793 4.44248889e-05 0.00000000e+00 1.12651668e-04 52 8 -1 -1.53027522e+00
+4097 4097 4097 1.20714122e-05 0.00000000e+00 3.20339285e-05 56 9 -1 -1.57673686e+00
+9217 9217 9217 3.26101452e-06 0.00000000e+00 8.97617707e-06 59 10 -1 -1.61422100e+00
diff --git a/Master/texmf-dist/doc/generic/pgfplots/test/pgfkeysaddition/pgfkeysadditiontest.tex b/Master/texmf-dist/doc/generic/pgfplots/test/pgfkeysaddition/pgfkeysadditiontest.tex
new file mode 100644
index 00000000000..0670f283cca
--- /dev/null
+++ b/Master/texmf-dist/doc/generic/pgfplots/test/pgfkeysaddition/pgfkeysadditiontest.tex
@@ -0,0 +1,251 @@
+\documentclass[a4paper]{article}
+
+\usepackage[intlimits]{amsmath}
+\usepackage{amssymb}
+\usepackage{amsfonts}
+\usepackage{ifpdf}
+
+\ifpdf
+\else
+\def\pgfsysdriver{pgfsys-dvipdfm.def}
+\fi
+\usepackage{tikz}
+\usepackage{pgfplots}
+
+\parindent=0pt
+
+\def\testsection#1{\message{---------- STARTING TEST SECTION '#1'}\section{#1}}
+\def\testsubsection#1{\message{-------STARTING TEST SUBSECTION '#1'}\subsection{#1}}
+\def\testsubsubsection#1{\message{------STARTING TEST SUBSUBSECTION '#1'}\subsubsection{#1}}
+
+\author{Christian Feuers\"anger}
+\title{Test cases for pgfkeysaddition.sty}
+
+\begin{document}
+\maketitle
+
+\pgfkeys{/my group/option1/.code={\message{/my group/option1 set to '#1'!}}}
+\pgfkeys{/my group/option2/.code={\message{/my group/option2 set to '#1'!}}}
+\pgfkeys{/my other group/O1/.code={\message{/my other group/O1 set to '#1'!}}}
+\pgfkeys{/my other group/O2/.code={\message{/my other group/O2 set to '#1'!}}}
+
+\pgfkeys{/pgf/key filter handlers/log/.install key filter handler}%
+
+\testsection{Testing the `is descendant of -- predicate'}
+\pgfkeys{/pgf/key filters/is descendant of/.install key filter={/my group}}%
+\tracingmacros=2\tracingcommands=2
+\pgfkeysfiltered%
+ {/my group/.cd,option1=value for option1,/my other group/O1=value for O1}%
+\tracingmacros=0\tracingcommands=0
+
+\testsubsection{Testing it for a tikz style}
+\tikzstyle{mein style}=[/my group/option1=option1 value in a style!,/tikz/line width=1pt]
+\pgfkeys{/pgf/key filters/is descendant of/.install key filter={/my group}}%
+\pgfkeysfiltered%
+ {/my group/.cd,option1=value for option1,/my other group/O1=value for O1,/tikz/mein style}%
+
+
+\testsection{Testing filtering for errors}
+\testsubsection{unknown handler in /my group/}
+{
+\pgfkeys{/my group/.unknown/.code=\message{'#1' is unknown and the handler /my group/.unknown has been invoked!}}%
+\pgfkeys{/pgf/key filters/is descendant of/.install key filter={/my group}}%
+\pgfkeysfiltered%
+ {/my group/.cd,option1=value for option1,option42=42}%
+}
+
+\testsubsection{unknown handler in /handlers/}
+{
+\pgfkeys{/handlers/.unknown/.code=\message{'#1' is unknown and the handler /handlers/.unknown has been invoked!}}%
+\pgfkeys{/pgf/key filters/is descendant of/.install key filter={/my group}}%
+\pgfkeysfiltered%
+ {/my group/.cd,option1=value for option1,option42=42}%
+}
+
+
+\testsubsection{Check whether error messages come through}
+{
+\pgfkeys{/errors/mein fehler/.code=\message{My error message came through. That's good!}}%
+\pgfkeys{/handlers/.unknown/.code=\pgfkeysalso{/errors/mein fehler=foo}}%
+\pgfkeys{/pgf/key filters/is descendant of/.install key filter={/my group}}%
+\pgfkeysfiltered%
+ {/my group/.cd,option1=value for option1,option42=42}%
+}
+
+\testsection{Checking single key selection}
+{
+\pgfkeys{/test/a/.code=\message{'/test/a' is currently running; that's correct.}}%
+\pgfkeys{/test/b/.code=\errmessage{'/test/b' shouldn't run! test failed!}}%
+\pgfkeyssetvalue{/test/c}{Value of 'c'}%
+\pgfkeys{/test/d/.style={/test/a=bar}}%
+
+\testsubsection{command keys: select only /test/a}
+\pgfkeys{/pgf/key filters/equals/.install key filter={/test/a}}
+\pgfkeysfiltered%
+ {/test/a=4,/test/b=5}
+
+\testsubsection{value keys: select only /test/c}
+\pgfkeys{/pgf/key filters/equals/.install key filter={/test/c}}
+\pgfkeysfiltered%
+ {/test/a=4,/test/b=5,/test/c=7}
+
+\testsubsection{handler keys: select only /test/d}
+\pgfkeys{/pgf/key filters/equals/.install key filter={/test/d}}
+\pgfkeysfiltered%
+ {/test/a=4,/test/b=5,/test/d}
+}
+
+
+\testsection{Checking logical combinations}
+{
+\pgfkeys{/test/a/.code=\message{'/test/a' is currently running; that's correct.}}%
+\pgfkeys{/test/b/.code=\errmessage{'/test/b' shouldn't run! test failed!}}%
+\pgfkeys{/test/c/.code=\message{'/test/c' is currently running; that's correct.}}%
+\pgfkeys{/my group/A/.code=\message{'/my group/A' is currently running, that's correct.}}
+
+\testsubsection{NOT = /test/b}
+\pgfkeys{/pgf/key filters/not/.install key filter={/pgf/key filters/equals=/test/b}}
+\pgfkeysfiltered%
+ {/test/a=4,/test/b=5,/test/c}
+
+\testsubsection{AND}
+\pgfkeys{/pgf/key filters/and/.install key filter={{/pgf/key filters/equals={/test/a}}{/pgf/key filters/is descendant of=/test}}}
+\pgfkeysfiltered%
+ {/test/a=4,/test/b=5,/test/c}
+
+\testsubsection{OR}
+\pgfkeys{/pgf/key filters/or/.install key filter={{/pgf/key filters/equals={/test/a}}{/pgf/key filters/is descendant of=/my group}}}
+\pgfkeysfiltered%
+ {/test/a=4,/test/b=5,/my group/A=value 1}
+}
+
+\testsection{Testing filtered key collection}
+{
+\testsubsection{full keys}
+\tracingmacros=2\tracingcommands=2
+\pgfkeys{/pgf/key filters/is descendant of/.install key filter=/my group}
+\def\filtered{}%
+\pgfkeys{/pgf/key filter handlers/append filtered to/.install key filter handler=\filtered}%
+\pgfkeysfiltered%
+ {/my group/.cd,option1=value for option1,/my other group/O1=value for O1,/my other group/O2=value for O2}%
+\message{filtered = '\filtered'}
+\filtered
+
+\testsubsection{partial keys}
+\def\filtered{}%
+\pgfkeys{/pgf/key filters/or/.install key filter={{/pgf/key filters/is descendant of=/my group}{/pgf/key filters/equals=/my other group/.cd}}}
+\pgfkeysfiltered%
+ {/my group/.cd,option1=value for option1,/my other group/.cd,O1=value for O1,O2= value for O2}%
+\tracingmacros=2\tracingcommands=2
+\message{filtered = '\filtered'}
+\tracingmacros=0\tracingcommands=0
+\filtered
+
+\testsubsubsection{setting remaining keys}
+\pgfkeys{/my other group/.cd,/utils/exec=\pgfkeysalsofrom\filtered}
+}%
+
+
+\testsection{Testing search paths}
+{
+\pgfkeys{/my search path/.unknown/.code={%
+ \let\searchname=\pgfkeyscurrentname%
+ \pgfkeysalso{%
+ /my group/\searchname/.try=#1,
+ /my other group/\searchname/.lastretry=#1
+ }%
+ }%
+}
+\pgfkeys{/my other group/.unknown/.code=\message{/my other/group/.unknown: called with unknown option '#1'.}}%
+
+\testsubsection{First: no filtering}
+\pgfkeys{/my search path/.cd,option1=value for option1,O1=value for O1,an unknown option=foo}
+
+%--------------------------------------------------
+% \testsubsection{Second: with filtering}
+% \pgfkeysfiltered%
+% {\pgfkeysisdescendantoftwo{/my group}{/my search path}}%
+% {\pgfkeyslogfiltered}%
+% {/my search path/.cd,option1=value for option1,O1=value for O1,an unknown option=foo}
+% }
+%
+%--------------------------------------------------
+
+\testsection{Testing pgfkeysalsofiltered}
+{
+\def\filtered{}%
+\pgfkeys{/pgf/key filter handlers/append filtered to/.install key filter handler=\filtered}%
+
+\pgfkeys{/pgf/key filters/is descendant of/.install key filter=/my group}
+\pgfkeys{/my group/.cd,/utils/exec=\pgfkeysalsofiltered
+ {option1= value for option1,/my other group/O1=value for O1}}
+}
+
+\testsection{Testing family handling}
+{
+\testsubsection{testing .is family init:}
+\pgfkeys{/my group/.is family}
+\pgfkeysisfamilyactive{/my group}
+\ifpgfkeysfiltercontinue
+ \errmessage{TEST FAILED: /my group active: TRUE (EXPECTED FALSE)}%
+\else
+ \message{/my group active: FALSE (correct)}%
+\fi
+
+\testsubsection{testing .activate family:}
+\pgfkeys{/my group/.activate family}
+\pgfkeysisfamilyactive{/my group}
+\ifpgfkeysfiltercontinue
+ \message{/my group active: TRUE (correct)}%
+\else
+ \errmessage{TEST FAILED: /my group active: FALSE (EXPECTED: TRUE)}%
+\fi
+
+\testsubsection{testing .deactivate family:}
+\pgfkeys{/my group/.deactivate family}
+\pgfkeysisfamilyactive{/my group}
+\ifpgfkeysfiltercontinue
+ \errmessage{TEST FAILED: /my group active: TRUE (EXPECTED FALSE)}%
+\else
+ \message{/my group active: FALSE (correct)}%
+\fi
+
+\testsubsection{Testing filtering by active family}
+{
+\pgfkeys{/family1/.is family}
+\pgfkeys{/family2/.is family}
+\pgfkeys{/test/a/.code=\message{'/test/a' is currently running; that's correct.}}%
+\pgfkeys{/test/a/.belongs to family=/family1}
+
+\pgfkeys{/test/b/.code=\errmessage{'/test/b' shouldn't run! test failed!}}%
+\pgfkeys{/test/b/.belongs to family=/family2}%
+
+\pgfkeys{/test/c/.code=\errmessage{'/test/c' shouldn't run! test failed! }}%
+\pgfkeys{/test/d/.code=\message{'/test/d' currently running. Ok.}}
+\pgfkeys{/test/d/.belongs to family=/family2}
+
+\testsubsubsection{first: only /test/a should run}%
+\pgfkeys{/family1/.activate family}
+\pgfkeys{
+ /pgf/key filters/active families/.install key filter,
+ /pgf/key filter handlers/log/.install key filter handler}
+
+\pgfkeysfiltered
+ {/test/a=value for a,/test/b=value for b,/test/c=value for c}
+
+\testsubsubsection{second: no option should run}%
+\pgfkeys{/family1/.deactivate family}
+
+\pgfkeysfiltered
+ {/test/a=value for a,/test/b=value for b,/test/c=value for c}
+
+
+\testsubsubsection{once more again with dynamic family list detection pgfqkeysactivatefamiliesandfilteroptions}
+\tracingmacros=2\tracingcommands=2
+\pgfqkeysactivatefamiliesandfilteroptions{/family1,/family2}{/test}
+ {a=value for a,c=value for c,d=value for d}
+\tracingmacros=0\tracingcommands=0
+}}
+
+
+\end{document}
diff --git a/Master/texmf-dist/doc/generic/pgfplots/test/pgfmathlogtest/pgfmathlogtest.tex b/Master/texmf-dist/doc/generic/pgfplots/test/pgfmathlogtest/pgfmathlogtest.tex
new file mode 100644
index 00000000000..d1264433055
--- /dev/null
+++ b/Master/texmf-dist/doc/generic/pgfplots/test/pgfmathlogtest/pgfmathlogtest.tex
@@ -0,0 +1,507 @@
+\documentclass[a4paper]{article}
+
+\usepackage[intlimits]{amsmath}
+\usepackage{amssymb}
+\usepackage{amsfonts}
+\usepackage{ifpdf}
+
+\ifpdf
+ \usepackage{hyperref}
+\else
+ \def\pgfsysdriver{pgfsys-dvipdfm.def}
+ \usepackage[dvipdfm]{hyperref}
+\fi
+\usepackage{pgfmathlog}
+
+\parindent=0pt
+
+
+\author{Christian Feuers\"anger}
+\title{Test cases for pgfmathlog.sty}
+
+\def\testsection#1{\message{---------- STARTING TEST SECTION '#1'}\section{#1}}
+\def\testsubsection#1{\message{-------STARTING TEST SUBSECTION '#1'}\subsection{#1}}
+\def\testsubsubsection#1{\message{------STARTING TEST SUBSUBSECTION '#1'}\subsubsection{#1}}
+
+\begin{document}
+\maketitle
+
+\def\vgl#1#2{%
+ \begingroup
+ \message{COMPUTING LOG(#1)}%
+ \pgfmathlog{#1}%
+ \let\actual=\pgfmathresult
+ \def\expected{#2}%
+ \pgfmathsubtract\actual\expected%
+ \let\abserr=\pgfmathresult
+ \pgfmathdivide\abserr\expected
+ \let\relerr=\pgfmathresult
+ \noindent
+ log(#1)\hfill=
+ \expected;\hfill%
+ actual=\actual;\hfill%
+ abserr=\abserr;\hfill%
+ relerr=\relerr;\hfill%
+ \endgroup
+ \par
+}%
+\def\normalize#1{%
+ \begingroup
+ \message{NORMALISING #1...}%
+ \sciparse#1\to\M\powten\E
+ \sciparsenumber{#1}\S\MM\EE
+ \[ #1 \mapsto \M \cdot 10^{\E}\quad \bigl( = \MM\cdot 10^{\EE}\quad [S=\S]\, \bigr) \]
+ \endgroup
+}
+
+\def\pretty#1{%
+ \message{Pretty-printing #1...}%
+ \[ #1 \mapsto \prettyprintnumber{#1} \]
+}
+
+
+
+%--------------------------------------------------
+% \showit{2.8128}
+% log(12)=\pgfmathlog{1.2}\pgfmathadd{\pgfmathresult}{2.30258}\pgfmathresult\par
+% \showit{1.2}
+% \showit{4.0}
+% log(1200)=\pgfmathlog{1.2}\pgfmathadd{\pgfmathresult}{6.9077}\pgfmathresult\par
+% log(6.241e-7)=\pgfmathlog{6.241}\pgfmathadd{\pgfmathresult}{-16.11809}\pgfmathresult\par
+%--------------------------------------------------
+
+\testsection{logarithms, compared with PGF arithmetics}
+
+\vgl{0.1}{-2.30259}
+\vgl{0.12}{-2.12026}
+\vgl{0.2}{-1.60944}
+\vgl{0.3}{-1.20397}
+\vgl{0.4}{-0.916291}
+\vgl{0.5}{-0.693147}
+\vgl{0.6}{-0.510826}
+\vgl{0.7}{-0.356675}
+\vgl{0.75}{-0.287682}
+\vgl{0.8}{-0.223144}
+\vgl{0.823}{-0.194799}
+\vgl{0.9}{-0.105361}
+\vgl{0.96}{-0.040822}
+\vgl{1.2}{0.182322}
+\vgl{1.5}{0.405465}
+\vgl{1.6}{0.470004}
+\vgl{9.0}{2.1972245773}
+\vgl{9.2}{2.2192034}
+\vgl{9.3}{2.23001440}
+\vgl{9.7}{2.27212588}
+\vgl{10.0}{2.302585092}
+\vgl{100.0}{4.605170185}
+\vgl{1351.0}{7.208600337}
+\vgl{9752.0}{9.185227671}
+\vgl{9600.0}{9.169518377}
+
+\vskip1cm
+\vgl{0.000142}{-8.8596835}
+\vgl{0.0054124}{-5.219062661}
+\vgl{0.000912697124}{-6.9991064}
+
+\vskip1cm
+\vgl{8.31160034e-02}{-2.48751801563782}%
+\vgl{2.54685628e-02}{-3.67031041875206}%
+\vgl{7.40715288e-03}{-4.90530914022879}%
+\vgl{2.10192154e-03}{-6.16490333357987}%
+\vgl{5.87352989e-04}{-7.43988457474844}%
+\vgl{1.62269942e-04}{-8.72624930084187}%
+\vgl{4.44248889e-05}{-10.0217106847708}%
+\vgl{1.20714122e-05}{-11.3246705288704}%
+\vgl{3.26101452e-06}{-12.6334722085451}%
+
+\vskip1cm
+\vgl{5}{1.6094379124341}%
+\vgl{17}{2.83321334405622}%
+\vgl{39}{3.66356164612965}%
+\vgl{49}{3.89182029811063}%
+\vgl{129}{4.85981240436167}%
+\vgl{321}{5.77144112313002}%
+\vgl{769}{6.64509096950564}%
+\vgl{1793}{7.49164547360513}%
+\vgl{4097}{8.31801027754687}%
+\vgl{9217}{9.12880488399366}%
+
+
+\testsection{Conversion to normalised floating point numbers basis 10}
+\normalize{123.41251}%
+\normalize{1023.52}
+\normalize{123412.51}%
+\normalize{12341251.0}%
+\tracingmacros=2\tracingcommands=2
+\normalize{-12341251.0}%
+\tracingmacros=0\tracingcommands=0
+\normalize{1.2341251}%
+\normalize{8.02410024}
+\normalize{8.024100}
+\normalize{0001234.3100}
+\normalize{0001234.00001}
+\normalize{0001000.00001}
+\normalize{0001000.00001000}
+\normalize{0.12341251}%
+\normalize{0.0012341251}%
+\normalize{0.00000012341251}%
+\normalize{-0.00000012341251}%
+\normalize{10}
+\normalize{100}
+\normalize{99999}
+\normalize{999.000}
+
+\normalize{8.31160034e-02}%
+\normalize{2.54685628e-02}%
+\normalize{7.40715288e-03}%
+\normalize{2.10192154e-03}%
+\normalize{5.87352989e-04}%
+\normalize{-1.62269942e-04}%
+\normalize{4.44248889e-05}%
+\normalize{1.20714122e-05}%
+\normalize{3.26101452e-06}%
+\normalize{3261.01452e-06}%
+\normalize{0.000326101452e-06}%
+
+\message{SPECIAL CASE 0}%
+\normalize{0}
+\normalize{-0}
+\normalize{-0.000}
+\normalize{+0.000}
+\normalize{+0}
+\normalize{-1}
+\normalize{1.0e1}
+\tracingmacros=2\tracingcommands=2
+\normalize{1e1}
+\tracingmacros=0\tracingcommands=0
+\normalize{1141}
+\normalize{-53e-5}
+
+\testsection{Test for prettyprinter}
+\message{PRETTY PRINTING}
+{
+\twocolumn
+\def\prettytest{
+\pretty{1}
+\pretty{1.0}
+\pretty{-1.02311}
+\pretty{-11241.02311}
+\pretty{-11241}
+\pretty{8124.99999}
+\pretty{8124.849999}
+\pretty{8124.843333}
+\pretty{8.82}
+\pretty{8.5}
+\pretty{9.}
+\pretty{-0.559}
+\pretty{-0.554}
+\pretty{-0.00000141}
+\pretty{1.234e10}
+\pretty{123456781}
+\pretty{1234}
+\pretty{8}
+\pretty{-9.995}
+\pretty{-0.015}
+\pretty{-0.1}
+\pretty{-0.15}
+\pretty{0.15}
+\pretty{-0}
+\pretty{9.00}
+\pretty{200.01}
+\pretty{200.0000}
+\pretty{1.5e-7}
+\pretty{0.00035}
+\pretty{0.00005}
+\pretty{nan}
+\pretty{inf}
+\pretty{-inf}
+\pretty{10}
+\pretty{100}
+\pretty{200}
+\pretty{500}
+\pretty{1000}
+}
+
+\testsubsection{STD format}
+\pgfkeys{/numbers/std}
+\prettytest
+
+{
+\testsubsection{FIXED format}
+\testsubsubsection{with period}
+\pgfkeys{/numbers/fixed,/numbers/use period}
+\prettytest
+
+\testsubsubsection{with comma}
+\pgfkeys{/numbers/fixed,/numbers/use comma}
+\prettytest
+}
+
+{
+\testsubsection{FIXED ZEROFILL format}
+\testsubsubsection{with period}
+\pgfkeys{/numbers/fixed zerofill,/numbers/use period}
+\prettytest
+
+\testsubsubsection{with comma}
+\pgfkeys{/numbers/fixed zerofill,/numbers/use comma}
+\prettytest
+}
+
+{
+\testsubsection{sci format}
+\testsubsubsection{with period}
+\pgfkeys{/numbers/sci,/numbers/use period}
+\prettytest
+
+\testsubsubsection{with comma}
+\pgfkeys{/numbers/sci,/numbers/use comma}
+\prettytest
+
+%\testsubsection{may skip mantisse}
+%\pgfkeys{/numbers/sci may skip mantisse=true}
+%\prettytest
+
+}{
+\testsubsection{sci format zerofill}
+\testsubsubsection{with period}
+\pgfkeys{/numbers/sci zerofill,/numbers/use period}
+\prettytest
+
+\testsubsubsection{with comma}
+\pgfkeys{/numbers/sci zerofill,/numbers/use comma}
+\prettytest
+
+\testsubsubsection{e-style}
+\pgfkeys{/numbers/sci e}
+\prettytest
+
+\testsubsubsection{subscript-style}
+\pgfkeys{/numbers/sci subscript}
+\prettytest
+
+\testsubsubsection{subscript-style + period + no zero fill}
+\pgfkeys{/numbers/sci subscript,/numbers/use period,/numbers/sci}
+\prettytest
+
+\testsubsubsection{subscript-style precision 4}
+\pgfkeys{/numbers/sci subscript,/numbers/precision=4}
+\prettytest
+}
+
+\testsubsection{int trunc format}
+\pgfkeys{/numbers/int trunc}
+\prettytest
+
+\testsubsection{int detect format}
+\pgfkeys{/numbers/int detect}
+\prettytest
+}
+\onecolumn
+
+\testsection{testing scimathlessthan}
+\def\testsci#1#2{%
+ \sciparsenumber{#1}\S\M\E
+ \sciparsenumber{#2}\SS\MM\EE
+ \message{checking #1 <= #2; [\S] \M * 10^\E <= [\SS] \MM * 10^\EE}%
+ \scimathlessthan\S\M\E\and\SS\MM\EE
+ \ifscimathlessthan
+ \def\result{<}%
+ \else
+ \def\result{\ge}%
+ \fi
+ \[ \text{scimathlessthan: } \bigl( [\S]\, \M \cdot 10^{\E} \bigr)\; = #1 \result #2\; \bigl( = [\SS]\, \MM \cdot 10^{\EE} \big). \]
+}%
+
+\testsci{4}{5}
+\testsci{0}{2}
+\testsci{91751123}{241924}
+\testsci{-1}{-1}
+\testsci{-1231}{0}
+\testsci{10}{-5}
+\testsci{0}{0}
+\testsci{-0}{-0}
+\testsci{0}{14}
+\testsci{114812}{-123124123}
+\testsci{114812}{1241231451}
+\testsci{-141285}{29}
+\testsci{-141285}{0}
+\testsci{-141285}{-50}
+\testsci{-141285}{-12498149012}
+
+\testsection{Sci to fixed test}
+\def\testscitofixed#1{%
+ \sciparsenumber{#1}\S\M\E
+%\tracingmacros=2\tracingcommands=2
+ \message{converting #1 = [\S] \M * 10^\E\ to fixed point}%
+ \scitofixed\S\M\E\result
+ \message{-> \result}%
+%\tracingmacros=0\tracingcommands=0
+ \[ \bigl( [\S]\, \M \cdot 10^{\E} \bigr)\; = #1 \mapsto \result \]
+}%
+\testscitofixed{0}
+\testscitofixed{5}
+\testscitofixed{5.520241}
+\testscitofixed{124.10241}
+\testscitofixed{-121.248}
+\testscitofixed{-12e-5}
+\testscitofixed{412e3}
+\testscitofixed{0.0001}
+\testscitofixed{0.0}
+\testscitofixed{-0.012125}
+\testscitofixed{1.2e-1}
+\testscitofixed{1.2e-2}
+\testscitofixed{1.2e4}
+\testscitofixed{1.2345e4}
+\testscitofixed{1.234567e4}
+\testscitofixed{1.51234e0}
+\testscitofixed{15}
+\testscitofixed{-20}
+
+\testsection{Testing scimathmax and scimathmin}
+\def\testscimathminmax#1#2{%
+ \sciparsenumber{#1}\S\M\E
+ \sciparsenumber{#2}\SS\MM\EE
+%\tracingmacros=2\tracingcommands=2
+ \message{computing min/max #1 and #2}%
+ \scimathmin\S\M\E\and\SS\MM\EE\to\SSS\MMM\EEE
+ \scitofixed\SSS\MMM\EEE\result
+ \[ \min\{#1,#2\} = \min\{ [\S]\, \M \cdot 10^{\E}, [\SS]\, \MM\cdot 10^{\EE}\} \; = [\SSS]\; \MMM\cdot10^{\EEE} = \result \]
+ %
+ \scimathmax\S\M\E\and\SS\MM\EE\to\SSS\MMM\EEE
+ \scitofixed\SSS\MMM\EEE\result
+ \[ \max\{#1,#2\} = \max\{ [\S]\, \M \cdot 10^{\E}, [\SS]\, \MM\cdot 10^{\EE}\} \; = [\SSS]\; \MMM\cdot10^{\EEE} = \result \]
+}%
+\testscimathminmax{42}{56}
+\testscimathminmax{-4122}{1256}
+\testscimathminmax{1e12}{5.235412e24}
+\testscimathminmax{-12}{-145}
+
+\testsection{Testing scimathshift}
+\def\testscimathshift#1#2{%
+ \sciparsenumber{#1}\S\M\E
+ \message{computing mathshift #1 by #2}%
+ \let\SS=\S\let\MM=\M\let\EE=\E
+ \scimathshift\S\M\E{#2}%
+ \scitofixed\S\M\E\result
+ \[ #1 \cdot 10^{#2} = [\SS]\, \MM \cdot 10^{\EE} \cdot 10^{#2} = [\S]\, \M \cdot 10^{\E} = \result \]
+}%
+\testscimathshift{4}{1}
+\testscimathshift{4}{2}
+\testscimathshift{4}{-1}
+\testscimathshift{4}{-2}
+\testscimathshift{0}{-2}
+\testscimathshift{1.1415130}{-2}
+\testscimathshift{1.1415130}{5}
+
+\testsection{Testing name floating point data structure}
+\let\SS=\empty
+\let\MM=\empty
+\let\EE=\empty
+\def\testsciDS#1#2{%
+ \sciparsenumber{#1}\S\M\E
+ \message{assigning #1=(\S,\M,\E) to single-name-macro ... }%
+ \scisetcomponents{#2}\S\M\E
+ \scigetcomponents{#2}\SS\MM\EE
+ \message{result: (\SS,\MM,\EE)}%
+ \edef\expandedtest{{\noexpand #2}{\S}{\M}{\E}}%
+ \message{now with raw-numbers to single-name-macro ... }%
+ \expandafter\scisetcomponents\expandedtest
+ \scigetcomponents{#2}\SSS\MMM\EEE
+ \message{result: (\SSS,\MMM,\EEE)}%
+ \scitofixed\SS\MM\EE\result
+ \scitofixed\SSS\MMM\EEE\resultX
+ \[ #1 = [\S]\, \M \cdot 10^{\E}\text{ re-extracted }\to[\SS]\, \MM \cdot 10^{\EE} = \result\; [ \text{again: }\resultX ] \]
+}%
+\testsciDS{141.241}\test
+\testsciDS{141.241}{test}
+\testsciDS{141.241}{341}
+\def\test{eins zwei drei}
+\testsciDS{141.241}\test
+
+
+\scitofixed{1}{1.0}{2}\result\result
+
+\testsection{Testing fixedpointround}
+\def\testfpround#1#2{%
+\tracingmacros=2\tracingcommands=2
+ \message{computing fixedpointround(#1):}%
+ \def\sciroundprecision{#2}%
+ \fixedpointround{#1}\result
+ \fixedpointroundzerofill{#1}\resultz
+ \message{fixedpointround(#1) -> \result; (\resultz)}%
+ \[ \text{rnd }#1 \text{ to }#2 \to \result\; (\resultz) \]
+\tracingmacros=0\tracingcommands=0
+}%
+\[ \text{rnd }x \text{ to PREC} \to \text{no trailing zeros }\; (\text{trailing zeros}) \]
+\testfpround{1.0000}{2}
+\testfpround{-1.0000}{2}
+\testfpround{+1.0000}{2}
+\testfpround{1.003}{2}
+\testfpround{-1.003}{2}
+\testfpround{1.123}{2}
+\testfpround{1.12300012}{5}
+\testfpround{-9.995}{2}
+\testfpround{-0.995}{2}
+\testfpround{-9.95}{1}
+\testfpround{-0.95}{1}
+\testfpround{9}{2}
+\testfpround{1341}{2}
+\testfpround{0.996}{2}
+\testfpround{19999.9996}{2}
+\testfpround{-19999.9996}{2}
+\testfpround{+19999.9996}{2}
+\testfpround{9999.9996}{2}
+\testfpround{0.0004982}{3}
+\testfpround{0.0004982}{4}
+\testfpround{0.0004982}{5}
+\testfpround{0.0004982}{6}
+\testfpround{0.0004982}{7}
+\testfpround{0.0004982}{8}
+\testfpround{0.0004982}{9}
+
+\testsection{Testing sciround}
+\def\testsciround#1#2{%
+\tracingmacros=2\tracingcommands=2
+ \message{computing sciround(#1):}%
+ \sciparsenumber{#1}\S\M\E
+ \def\sciroundprecision{#2}%
+ \sciround\S\M\E\to\rS\rM\rE
+ % DOESN'T WORK BECAUSE PERIOD IS MISSING:
+% \scitofixed\rS\rM\rE\result
+ \sciroundzerofill\S\M\E\to\rrS\rrM\rrE
+ \scitofixed\rrS\rrM\rrE\resultz
+ \message{#1: round([\S] \M \cdot 10^{\E}) to #2 -> [\rS] \rM * 10^{\rM}; ([\rrS] \rrM * 10^{\rrE})}%
+ \[ #1:
+ \text{rnd}([\S] \M \cdot 10^{\E})
+ \text{ to } #2
+ \to
+ [\rS] \rM \cdot 10^{\rE} %= \result
+ \quad
+ ([\rrS] \rrM \cdot 10^{\rrE} = \resultz)
+ \]
+\tracingmacros=0\tracingcommands=0
+}%
+\[ \text{rnd }x \text{ to PREC} \to \text{no trailing zeros }\; (\text{trailing zeros}) \]
+\testsciround{1.0000}{2}
+\testsciround{-1.0000}{2}
+\testsciround{+1.0000}{2}
+\testsciround{1.003}{2}
+\testsciround{-1.003}{2}
+\testsciround{1.123}{2}
+\testsciround{1.12300012}{5}
+\testsciround{9}{2}
+\testsciround{1341}{2}
+\testsciround{0.996}{2}
+\testsciround{19999.9996}{2}
+\testsciround{-19999.9996}{2}
+\testsciround{+19999.9996}{2}
+\testsciround{9999.9996}{2}
+\testsciround{0.0004982}{3}
+\testsciround{0.0004982}{4}
+\testsciround{0.0004982}{5}
+\testsciround{0.0004982}{6}
+\testsciround{0.0004982}{7}
+\testsciround{0.0004982}{8}
+\testsciround{0.0004982}{9}
+\end{document}
diff --git a/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.align.tex b/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.align.tex
new file mode 100644
index 00000000000..036ee5c71a0
--- /dev/null
+++ b/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.align.tex
@@ -0,0 +1,215 @@
+\testfile{pgfplotstest.align.tex}
+\testsection{Anchors, alignment, baselines, sub nodes}%
+\testsubsection{Baseline alignment}
+\noindent
+\begin{tikzpicture}[baseline]
+ \begin{axis}[width=0.4\linewidth,xlabel=An x label]
+ \smallplotstest
+ \end{axis}
+\end{tikzpicture}
+\hspace{1cm}
+\begin{tikzpicture}[baseline]
+ \begin{axis}[width=0.4\linewidth,xlabel={\Huge An x label}]
+ \smallplotstest
+ \end{axis}
+\end{tikzpicture}
+
+\testsubsection{Baseline alignment and externalized graphics}
+One needs \texttt{\textbackslash beginpgfgraphicnamed} around the complete paragraph, so this here doesn't work (see source code):
+
+\beginpgfgraphicnamed{baselinetesta}
+\begin{tikzpicture}[baseline]
+\begin{axis}[width=0.4\linewidth,xlabel=An x label]
+ \smallplotstest
+\end{axis}
+\end{tikzpicture}
+\endpgfgraphicnamed
+%
+%
+\hspace{1cm}
+\beginpgfgraphicnamed{baselinetestb}
+\begin{tikzpicture}[baseline]
+\begin{axis}[width=0.4\linewidth,xlabel={\Huge An x label}]
+ \smallplotstest
+\end{axis}
+\end{tikzpicture}
+\endpgfgraphicnamed
+
+\testsubsection{Baseline alignment and externalized graphics II}
+\beginpgfgraphicnamed{baselinetestc}
+\begin{tikzpicture}[baseline]
+\begin{axis}[width=0.4\linewidth,xlabel=An x label]
+ \smallplotstest
+\end{axis}
+\end{tikzpicture}
+%
+%
+\hspace{1cm}
+\begin{tikzpicture}[baseline]
+\begin{axis}[width=0.4\linewidth,xlabel={\Huge An x label}]
+ \smallplotstest
+\end{axis}
+\end{tikzpicture}
+\endpgfgraphicnamed
+
+\testsubsection{Horizontal and Vertical alignment}
+\begin{tikzpicture}[baseline]
+\begin{axis}[width=0.4\linewidth,xlabel=An x label,ylabel=An y label]
+ \smallplotstest
+\end{axis}
+
+\begin{scope}[yshift=-4cm]
+\begin{axis}[width=0.4\linewidth,xlabel=An x label,ylabel={$\displaystyle\sum_{k=1}^n \frac 1n$}]
+ \smallplotstest
+\end{axis}
+\end{scope}
+
+\node[fill=yellow,circle] at (0,0) {$(0,0)$};
+\end{tikzpicture}
+%
+%
+\hspace{1cm}
+\begin{tikzpicture}[baseline]
+\begin{axis}[width=0.4\linewidth,xlabel={\Huge An x label}]
+ \smallplotstest
+\end{axis}
+
+\begin{scope}[yshift=-4cm]
+\begin{axis}[width=0.4\linewidth,xlabel={\Huge An x label},ylabel={$\displaystyle\sum_{k=1}^n \frac 1n$}]
+ \smallplotstest
+\end{axis}
+\end{scope}
+\node[fill=yellow,circle] at (0,0) {$(0,0)$};
+\end{tikzpicture}
+
+\testsubsection{Anchortest}
+{
+\setlength{\fboxsep}{0pt}%
+\def\plot#1{
+ \vbox{\hsize=5cm
+ #1:
+
+ \pgfplotsset{every axis legend/.append style={at={(1.03,1)},anchor=north west}}
+ \fbox{%
+ \begin{tikzpicture}
+ \begin{axis}[
+ width=5cm,
+ anchor=#1,
+ title=My title,
+ xlabel=$x$,
+ ylabel=$y$
+ ]
+ \smallplotstest
+ \addlegendentry{My plot}
+ \end{axis}
+ \begin{pgfinterruptboundingbox}
+ \node[fill=yellow,circle] at (0,0) {$(0,0)$};
+ \end{pgfinterruptboundingbox}
+ \end{tikzpicture}
+ }%
+ }
+}%
+\plot{outer center}
+\plot{outer north}
+\plot{outer north east}
+\plot{outer east}
+\plot{outer south east}
+\plot{outer south}
+\plot{outer south west}
+\plot{outer west}
+\plot{outer north west}
+\plot{center}
+\plot{north}
+\plot{north east}
+\plot{east}
+\plot{south east}
+\plot{south}
+\plot{south west}
+\plot{west}
+\plot{north west}
+\plot{above north}
+\plot{above north east}
+\plot{right of north east}
+\plot{right of east}
+\plot{right of south east}
+\plot{below south east}
+\plot{below south}
+\plot{below south west}
+\plot{left of south west}
+\plot{left of west}
+\plot{left of north west}
+\plot{above north west}
+}
+
+
+\testsubsection{Accessing sub-nodes}
+\begin{tikzpicture}[baseline]%
+ \node[circle,draw=black] at (0,0) {Origin};
+ \begin{loglogaxis}[
+ anchor=north,
+ name=firstplot,
+ xlabel=Cost,
+ ylabel=Error,
+ y label style={name=myylabel},
+ x label style={name=myxlabel},
+ legend style={name=mylegend,
+ row 1 column 2/.style={blue,name=firstentry}% doesn't work!
+ }
+ ]
+ \addplot plot coordinates {
+ (5, 8.31160034e-02)
+ (17, 2.54685628e-02)
+ (49, 7.40715288e-03)
+ (129, 2.10192154e-03)
+ (321, 5.87352989e-04)
+ (769, 1.62269942e-04)
+ (1793, 4.44248889e-05)
+ (4097, 1.20714122e-05)
+ (9217, 3.26101452e-06)
+ };
+ \addplot plot coordinates {
+ (7, 8.47178381e-02)
+ (31, 3.04409349e-02)
+ (111, 1.02214539e-02)
+ (351, 3.30346265e-03)
+ (1023, 1.03886535e-03)
+ (2815, 3.19646457e-04)
+ (7423, 9.65789766e-05)
+ (18943, 2.87339125e-05)
+ (47103, 8.43749881e-06)
+ };
+ \legend{Case 1\\Case 2\\}
+ \end{loglogaxis}
+
+ \node[pin=45:legend] at (mylegend.center) {};
+ \node[pin=-45:x label] at (myxlabel.center) {};
+ \node[pin=180:y label] at (myylabel.center) {};
+\end{tikzpicture}%
+
+
+\testsubsection{Funny bounding boxes}
+\testsubsubsection{(my plot.below south west) rectangle (my plot.above north east)}
+{
+The following figure is centered:
+\setlength{\fboxsep}{0pt}%
+\begin{center}
+\fbox{%
+\begin{tikzpicture}%
+ \begin{pgfinterruptboundingbox}
+ \pgfplotsset{every axis legend/.append style={at={(1.03,1)},anchor=north west}}
+ \begin{axis}[
+ name=my plot,
+ title=A title,
+ xlabel={\Huge An x label},
+ ylabel={$\displaystyle\sum_{k=1}^n \frac 1n$}
+ ]
+ \smallplotstest
+ \addlegendentry{My plot}
+ \end{axis}
+ \end{pgfinterruptboundingbox}
+
+ \useasboundingbox (my plot.below south west) rectangle (my plot.above north east);
+\end{tikzpicture}%
+}%
+\end{center}
+}
diff --git a/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.axislines.tex b/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.axislines.tex
new file mode 100644
index 00000000000..351fc07d65a
--- /dev/null
+++ b/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.axislines.tex
@@ -0,0 +1,259 @@
+\testfile{pgfplotstest.axislines.tex}
+\testsection{Axislines placement}
+
+\def\smallplotstestyoffset{%
+\addplot[smooth,blue,mark=*] coordinates {
+ (-1, 11)
+ (-0.75, 10.5625)
+ (-0.5, 10.25)
+ (-0.25, 10.0625)
+ (0, 10)
+ (0.25, 10.0625)
+ (0.5, 10.25)
+ (0.75, 10.5625)
+ (1, 11)
+};
+}
+
+\def\smallplotstestyoffsetneg{%
+\addplot[smooth,blue,mark=*] coordinates {
+ (-1, -11)
+ (-0.75, -10.5625)
+ (-0.5, -10.25)
+ (-0.25, -10.0625)
+ (0, -10)
+ (0.25, -10.0625)
+ (0.5, -10.25)
+ (0.75, -10.5625)
+ (1, -11)
+};
+}
+
+\def\smallplotstestxoffset{%
+\addplot[smooth,blue,mark=*] coordinates {
+ (9, 1)
+ (9.25, 0.5625)
+ (9.5, 0.25)
+ (9.75, 0.0625)
+ (10, 0)
+ (10.25, -0.0625)
+ (10.5, -0.25)
+ (10.75, -0.5625)
+ (11, -1)
+};
+}
+
+\def\smallplotstestxoffsetneg{%
+\addplot[smooth,blue,mark=*] coordinates {
+ (-9, 1)
+ (-9.25, 0.5625)
+ (-9.5, 0.25)
+ (-9.75, 0.0625)
+ (-10, 0)
+ (-10.25, -0.0625)
+ (-10.5, -0.25)
+ (-10.75, -0.5625)
+ (-11, -1)
+};
+}
+
+\testsubsection{tick align=outside}
+\begin{tikzpicture}
+\begin{axis}[
+ tick align=outside,
+ ]
+ \smallplotstest
+\end{axis}
+\end{tikzpicture}
+
+\testsubsection{axis y line/ axis x line}
+\begin{tikzpicture}
+\begin{axis}[
+ axis y line=center,
+ axis x line=bottom
+ ]
+ \smallplotstest
+\end{axis}
+\end{tikzpicture}
+
+\testsubsection{axis [xy] line/ tick align/ y discont}
+\begin{tikzpicture}
+\begin{axis}[
+ axis y discontinuity=crunch,
+ axis y line=center,
+ axis x line=bottom,
+ tick align=center,
+ ymin=9
+ ]
+ \smallplotstestyoffset
+\end{axis}
+\end{tikzpicture}
+
+\begin{tikzpicture}
+\begin{axis}[
+ enlargelimits=false,
+ minor tick num=3,
+ axis y line=box,
+ axis x line=middle
+ ]
+ \addplot[blue,mark=none] plot[id=sinneg,domain=-10:0,samples=40] function{sin(x)};
+\end{axis}
+\end{tikzpicture}
+
+\begin{tikzpicture}
+\begin{axis}[
+ enlargelimits=false,
+ minor tick num=3,
+ axis y line=left,
+ axis x line=middle
+ ]
+ \addplot[blue,mark=none] plot[id=sinneg,domain=-10:0,samples=40] function{sin(x)};
+\end{axis}
+\end{tikzpicture}
+
+\begin{tikzpicture}
+\begin{axis}[
+ enlargelimits=false,
+ minor tick num=3,
+ axis y line=right,
+ axis x line=middle
+ ]
+ \addplot[blue,mark=none] plot[id=sinneg,domain=-10:0,samples=40] function{sin(x)};
+\end{axis}
+\end{tikzpicture}
+
+\begin{tikzpicture}
+\begin{axis}[
+ enlargelimits=false,
+ minor tick num=3,
+ axis y line=center,
+ axis x line=box,
+ ymin=0, ymax=25
+ ]
+ \addplot[blue,mark=none] plot[id=sinneg,domain=-5:5,samples=40] function{x*x+1};
+\end{axis}
+\end{tikzpicture}
+
+\begin{tikzpicture}
+\begin{axis}[
+ enlargelimits=false,
+ minor tick num=3,
+ axis y line=center,
+ axis x line=top,
+ ymin=0, ymax=25
+ ]
+ \addplot[blue,mark=none] plot[id=sinneg,domain=-5:5,samples=40] function{x*x+1};
+\end{axis}
+\end{tikzpicture}
+
+\begin{tikzpicture}
+\begin{axis}[
+ enlargelimits=false,
+ minor tick num=3,
+ axis y line=center,
+ axis x line=bottom,
+ ymin=0, ymax=25
+ ]
+ \addplot[blue,mark=none] plot[id=sinneg,domain=-5:5,samples=40] function{x*x+1};
+\end{axis}
+\end{tikzpicture}
+
+
+\begin{tikzpicture}
+\begin{axis}[
+ enlargelimits=false,
+ minor tick num=3,
+ axis y line=center,
+ axis x line=middle
+ ]
+ \addplot[blue,mark=none] plot[id=sinneg,domain=-5:5,samples=40] function{sin(x)};
+\end{axis}
+\end{tikzpicture}
+
+
+
+
+
+
+\testsubsection{axis [xy] line/ tick align/ x discont}
+\begin{tikzpicture}
+\begin{axis}[
+ axis y line=box,
+ axis x discontinuity=parallel,
+ axis x line=middle,
+ tick align=outside,
+ xmin=8.5
+ ]
+ \smallplotstestxoffset
+\end{axis}
+\end{tikzpicture}
+
+\begin{tikzpicture}
+\begin{axis}[
+ axis y line=box,
+ axis x discontinuity=parallel,
+ axis x line=middle,
+ tick align=outside,
+ xmin=8.5
+ ]
+ \smallplotstestxoffsetneg
+\end{axis}
+\end{tikzpicture}
+
+\begin{tikzpicture}
+\begin{axis}[
+ axis y line=box,
+ axis x discontinuity=crunch,
+ axis x line=middle,
+ tick align=outside,
+ xmin=8.5
+ ]
+ \smallplotstestxoffset
+\end{axis}
+\end{tikzpicture}
+
+
+\begin{tikzpicture}
+\begin{axis}[
+ axis y line=box,
+ axis x discontinuity=crunch,
+ axis x line=middle,
+ tick align=outside,
+ xmin=8.5
+ ]
+ \smallplotstestxoffsetneg
+\end{axis}
+\end{tikzpicture}
+
+\begin{tikzpicture}
+\begin{axis}[
+ axis y line=right,
+ axis x discontinuity=crunch,
+ axis x line=bottom,
+ tick align=outside,
+ xmin=8.5
+ ]
+ \smallplotstestxoffsetneg
+\end{axis}
+\end{tikzpicture}
+
+\begin{tikzpicture}
+\begin{axis}[
+ axis y line=right,
+ axis y discontinuity=crunch,
+ axis x line=top,
+ tick align=outside,
+ xmin=8.5
+ ]
+ \smallplotstestyoffsetneg
+\end{axis}
+\end{tikzpicture}
+
+\testsubsection{axis y discontinuity}
+\begin{tikzpicture}
+\begin{axis}[
+ axis y discontinuity=parallel,
+ ]
+ \smallplotstest
+\end{axis}
+\end{tikzpicture}
diff --git a/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.axispath.tex b/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.axispath.tex
new file mode 100644
index 00000000000..757130e5958
--- /dev/null
+++ b/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.axispath.tex
@@ -0,0 +1,41 @@
+\testfile{pgfplotstest.axispath.tex}
+\testsection{Testing path commands inside of axis}
+\testsubsection{log plot}
+\begin{tikzpicture}
+\begin{loglogaxis}[title=A test title,xlabel=Dof,ylabel=Error]
+\loglogtestplot
+
+\draw (axis cs:9217, 3.261015e-06) -| (axis cs:4097, 1.207141e-05);
+
+\node[pin=45:good!] at (axis cs:1023, 1.038865e-03) {};
+\end{loglogaxis}
+\end{tikzpicture}
+
+\testsubsection{Linear plot}
+\begin{tikzpicture}
+\begin{axis}
+\smallplotstest
+
+\draw (axis cs:-1,0) -- (axis cs:1,1);
+
+\node[font=\footnotesize,pin=45:{$(-0.25,0.0625)$}] at (axis cs:-0.25, 0.0625) {};
+\end{axis}
+\end{tikzpicture}
+
+\testsection{Checking plot expression}
+\begin{tikzpicture}
+\begin{axis}[domain=1:4,ymin=0,ymax=3,enlargelimits]
+\smallplotstest
+\addlegendentry{$g(x)$}
+
+\addplot (\x,{0.05*exp(\x)});
+\addlegendentry{$f(x) = \frac{1}{20} \mathrm e^x$}
+\end{axis}
+\end{tikzpicture}
+
+\begin{tikzpicture}
+\begin{axis}[ymin=0,ymax=4,enlargelimits]
+\addplot plot[domain=2:4.5] (\x,{0.05*exp(\x)});
+\addlegendentry{$f(x) = \frac{1}{20} \mathrm e^x$}
+\end{axis}
+\end{tikzpicture}
diff --git a/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.enlargelimits.tex b/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.enlargelimits.tex
new file mode 100644
index 00000000000..055a47ac6dc
--- /dev/null
+++ b/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.enlargelimits.tex
@@ -0,0 +1,99 @@
+\testfile{pgfplotstest.enlargelimits.tex}
+\testsection{Limit computation}
+\testsubsection{User specified limits}
+{\pgfplotsset{every axis/.append style={scaled ticks=false,enlargelimits=false}}
+[scaled ticks = false,enlargelimits=false] in this section
+\testsubsubsection{linear plot, unconstraint}
+\begin{tikzpicture}
+ \begin{axis}
+ \addplot file{pgfplots.testplot};
+ \end{axis}
+\end{tikzpicture}
+
+\testsubsubsection{linear plot, limited to $x \in [-20,20]$}
+\begin{tikzpicture}
+ \begin{axis}[xmin=-20,xmax=20]
+ \addplot file{pgfplots.testplot};
+ \end{axis}
+\end{tikzpicture}
+
+\testsubsubsection{linear plot, limited to $y \in [-12000,800]$}
+\begin{tikzpicture}
+ \begin{axis}[ymin=-12000,ymax=800]
+ \addplot file{pgfplots.testplot};
+ \end{axis}
+\end{tikzpicture}
+
+\testsubsubsection{linear plot, limited to $x \in [-20,20]; y \in [-12000,800]$}
+\begin{tikzpicture}
+ \begin{axis}[xmin=-20,xmax=20,ymin=-12000,ymax=800]
+ \addplot file{pgfplots.testplot};
+ \end{axis}
+\end{tikzpicture}
+
+\testsubsubsection{linear plot, limited to empty $x$-range}
+\begin{tikzpicture}
+ \begin{axis}[xmin=2000,xmax=20000]
+ \addplot file{pgfplots.testplot};
+ \end{axis}
+\end{tikzpicture}
+
+
+
+\testsubsection{Log plots}
+Log--plots use the same code; they should work in the same way!
+
+\testsubsubsection{log plot unconstraint}
+\begin{tikzpicture}
+ \begin{loglogaxis}
+ \loglogtestplot
+ \end{loglogaxis}
+\end{tikzpicture}
+
+\testsubsubsection{log plot limited to $x \in [10^3,5\cdot 10^5]$}
+\begin{tikzpicture}
+ \begin{loglogaxis}[xmin=1e3,xmax=5e5]
+ \loglogtestplot
+ \end{loglogaxis}
+\end{tikzpicture}
+
+\testsubsubsection{log plot limited to $y \in [10^{-5},2\cdot 10^{-3}]$}
+\begin{tikzpicture}
+ \begin{loglogaxis}[ymin=1e-5,ymax=2e-3]
+ \loglogtestplot
+ \end{loglogaxis}
+\end{tikzpicture}
+}
+
+\testsubsection{Enlargelimits tests}
+\testsubsubsection{enlargelimits=false, x limits provided}
+\begin{tikzpicture}
+\begin{axis}[%
+ enlargelimits=false,
+ xmin=0,xmax=1,
+ xtick={-1.5,-1.25,...,1.5}]
+\smallplotstest
+\end{axis}
+\end{tikzpicture}
+
+\testsubsubsection{enlargelimits=false, no limits provided}
+\begin{tikzpicture}
+\begin{axis}[enlargelimits=false]
+\smallplotstest
+\end{axis}
+\end{tikzpicture}
+
+\testsubsubsection{enlargelimits=true, all limits provided $[-1,1]\times [-1,1]$}
+\begin{tikzpicture}
+\begin{axis}[enlargelimits=true,xmin=-1,xmax=1,ymin=-1,ymax=1]
+\smallplotstest
+\end{axis}
+\end{tikzpicture}
+
+\testsubsubsection{enlargelimits=0.5}
+\begin{tikzpicture}
+\begin{axis}[enlargelimits=0.5]
+\smallplotstest
+\end{axis}
+\end{tikzpicture}
+
diff --git a/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.errorbars.tex b/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.errorbars.tex
new file mode 100644
index 00000000000..c90f00287e6
--- /dev/null
+++ b/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.errorbars.tex
@@ -0,0 +1,153 @@
+\testfile{pgfplotstest.errorbars.tex}
+\testsection{Errorbars}
+{
+%\tracingmacros=2\tracingcommands=2
+\begin{tikzpicture}
+\begin{axis}
+\addplot plot[
+ /pgfplots/error bars/.cd,
+ y dir=both,y explicit,
+ x dir=both,x fixed relative=0.5,
+ error mark=diamond*,
+]
+ coordinates
+ {(0,0) +- (0.5,0.1)
+ (0.1,0.1) +- (0.05,0.2)
+ (0.2,0.2) +- (0,0.05)
+ (0.5,0.5)
+ (1,1)};
+\end{axis}
+\end{tikzpicture}
+
+\testsubsubsection{changing styles}
+\begin{tikzpicture}
+\begin{axis}
+\addplot plot[
+ /pgfplots/error bars/.cd,
+ y dir=plus,y explicit,
+ error bar style={black,dotted,/pgfplots/error bars/error mark=square*,/pgfplots/error bars/error mark options={current plot style}},
+]
+ coordinates
+ {(0,0) +- (0.5,0.1)
+ (0.1,0.1) +- (0.05,0.2)
+ (0.2,0.2) +- (0,0.05)
+ (0.5,0.5) +- (0.1,0.2)
+ (1,1) +- (0.3,0.1)
+ };
+\end{axis}
+\end{tikzpicture}
+
+\testsubsubsection{using 100\% minus}
+\begin{tikzpicture}
+\begin{axis}
+\addplot plot[
+ /pgfplots/error bars/.cd,
+ y dir=minus,y fixed relative=1,
+ x dir=minus,x fixed relative=1,
+ error mark=none,
+ error bar style={dotted},
+]
+ coordinates
+ {(0,0)
+ (0.1,0.1)
+ (0.2,0.2)
+ (0.5,0.5)
+ (1,1)
+ };
+\end{axis}
+\end{tikzpicture}
+%
+\testsubsubsection{with plot table}
+\begin{sidewaystable}
+{%
+\lstset{
+ showtabs=true,
+ showspaces=true,
+ basicstyle=\footnotesize\ttfamily,
+ numbers=left,
+ numberblanklines=true,
+ breaklines=false,
+ tabsize=15}
+\lstinputlisting{plotdata/pgfplotstest_plot}
+}
+\caption{The table used for the plot table tests and error bars.}
+\label{tbl:k}
+\end{sidewaystable}
+
+\begin{tikzpicture}
+\begin{axis}[title={maxlevel versus cgiter, table~\ref{tbl:k}}]
+\addplot plot[
+ /pgfplots/error bars/.cd,
+ y dir=both,y explicit,
+] table[x=maxlevel,y=cgiter,y error=cgiter_err] {plotdata/pgfplotstest_plot};
+
+\end{axis}
+\end{tikzpicture}
+
+\testsubsection{Log-plot}
+\testsubsubsection{relative errors}
+\begin{tikzpicture}
+\begin{loglogaxis}[
+ grid=both]
+\addplot plot[
+ /pgfplots/error bars/.cd,
+ y dir=both,y explicit relative,
+ x dir=both,x fixed relative=0.5,
+ error mark=triangle*,
+]
+ coordinates {
+ (32,32)
+ (64,64)
+ (128,128) +- (0,0.3)
+ (1024,1024) +- (0,0.2)
+ (32068,32068) +- (0,0.6)
+ (64000,64000) +- (0,0.6)
+ (128000,128000) +- (0,0.6)
+ };
+
+\end{loglogaxis}
+\end{tikzpicture}
+
+\testsubsubsection{x fixed=500, y explicit relative}
+\begin{tikzpicture}
+\begin{loglogaxis}[
+ grid=both]
+\addplot plot[
+ /pgfplots/error bars/.cd,
+ y dir=both,y explicit relative,
+ x dir=both,x fixed=500,
+ error mark=triangle*,
+]
+ coordinates {
+ (32,32)
+ (64,64)
+ (128,128) +- (0,0.3)
+ (1024,1024) +- (0,0.2)
+ (32068,32068) +- (0,0.6)
+ (64000,64000) +- (0,0.6)
+ (128000,128000) +- (0,0.6)
+ };
+
+\end{loglogaxis}
+\end{tikzpicture}
+
+\testsubsubsection{with plot table}
+\begin{tikzpicture}
+\begin{loglogaxis}[title={dof versus Lmax, table~\ref{tbl:k}}]
+\addplot plot[
+ /pgfplots/error bars/.cd,
+ y dir=both,y explicit relative,
+] table[x=dof,y=Lmax,y error=Lmax_relerror] {plotdata/pgfplotstest_plot};
+\end{loglogaxis}
+\end{tikzpicture}
+
+\testsubsubsection{with plot table absolute}
+\begin{tikzpicture}
+\begin{loglogaxis}[grid=both,title={dof versus L2, table~\ref{tbl:k}}]
+\addplot plot[
+ /pgfplots/error bars/.cd,
+ y dir=both,y explicit,
+] table[x=dof,y=L2,y error=L2_abserror] {plotdata/pgfplotstest_plot};
+\end{loglogaxis}
+\end{tikzpicture}
+}
diff --git a/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.expr.tex b/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.expr.tex
new file mode 100644
index 00000000000..5cfc1992905
--- /dev/null
+++ b/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.expr.tex
@@ -0,0 +1,15 @@
+\testfile{pgfplotstest.expr.tex}
+\testsection{`plot expression' test}
+\testsubsection{sin(x)}
+\begin{tikzpicture}
+\begin{axis}
+\addplot (\x,{sin(\x r)});
+\end{axis}
+\end{tikzpicture}
+
+\testsubsection{$x^2$}
+\begin{tikzpicture}
+\begin{axis}
+\addplot plot[domain=0:10] (\x,\x^2);
+\end{axis}
+\end{tikzpicture}
diff --git a/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.file.tex b/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.file.tex
new file mode 100644
index 00000000000..423b2c4ee0d
--- /dev/null
+++ b/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.file.tex
@@ -0,0 +1,121 @@
+\testfile{pgfplotstest.file.tex}
+{%
+\lstset{
+ showtabs=true,
+ showspaces=true,
+ basicstyle=\footnotesize\ttfamily,
+ numbers=left,
+ numberblanklines=true,
+ breaklines=false,
+ tabsize=10}
+\testsection{`plot file' test}
+\testsubsection{A file in gnuplot format 'num num i'}
+\lstinputlisting{plotdata/pgfplotstest_plot2.gnuplot}
+\begin{tikzpicture}
+\begin{axis}
+\addplot plot file{plotdata/pgfplotstest_plot2.gnuplot};
+\end{axis}
+\end{tikzpicture}
+
+\testsubsubsection{Same file loaded with `plot table'}
+\begin{tikzpicture}
+\begin{axis}
+\addplot plot table{plotdata/pgfplotstest_plot2.gnuplot};
+\end{axis}
+\end{tikzpicture}
+
+
+\testsubsection{A file which differs slightly from gnuplot format}
+\lstinputlisting{plotdata/pgfplotstest_plot4}
+\begin{tikzpicture}
+\begin{axis}
+\addplot plot file{plotdata/pgfplotstest_plot4};
+\end{axis}
+\end{tikzpicture}
+
+\testsubsection{A file which starts with newlines}
+\lstinputlisting{plotdata/pgfplotstest_plot5}
+\begin{tikzpicture}
+\begin{axis}
+\addplot plot file{plotdata/pgfplotstest_plot5};
+\end{axis}
+\end{tikzpicture}
+
+\testsubsubsection{Same file loaded with `plot table'}
+The first data point should have been identified as column name.
+
+\begin{tikzpicture}
+\begin{axis}
+\addplot plot table{plotdata/pgfplotstest_plot5};
+\end{axis}
+\end{tikzpicture}
+
+\testsubsubsection{testing space gobbling in 'plot file' command}
+\begin{tikzpicture}
+\begin{axis}
+\addplot plot file {plotdata/pgfplotstest_plot2.gnuplot};
+\end{axis}
+\end{tikzpicture}
+
+\testsection{`plot table' test}
+\begin{sidewaystable}
+\lstinputlisting{plotdata/pgfplotstest_plot}
+\caption{\texttt{pgfplotstest\_plot}}
+\end{sidewaystable}
+\testsubsection{Plot by column `dof' versus column `Lmax'}
+\begin{tikzpicture}
+\begin{loglogaxis}[xlabel=Dof,ylabel=$L_\infty$ error,title=Read from file `pgfplotstest\_plot']
+\addplot plot table[x=dof,y=Lmax] {plotdata/pgfplotstest_plot};
+\end{loglogaxis}
+\end{tikzpicture}
+
+\testsubsection{Plot by column \#2 versus column \#3}
+\begin{tikzpicture}
+\begin{loglogaxis}[
+ xlabel=Dof,
+ ylabel=$L_2$ error,
+ title=Read from file `pgfplotstest\_plot'
+]
+\addplot plot table[x index=2,y index=3]{plotdata/pgfplotstest_plot};
+
+\end{loglogaxis}
+\end{tikzpicture}
+
+\testsubsection{Plot by preloaded tables}
+{
+\begin{sidewaystable}
+\lstinputlisting{plotdata/pgfplotstest_plot3}
+\caption{\texttt{pgfplotstest\_plot3}}
+\end{sidewaystable}
+\pgfnumtableread{plotdata/pgfplotstest_plot} to \tableA
+\pgfnumtableread{plotdata/pgfplotstest_plot3} to \tableB
+\begin{tikzpicture}
+\begin{loglogaxis}[
+ xlabel=Dof,
+ ylabel=$L_2$ error,
+ title=Read from file `pgfplotstest\_plot' and `pgfplotstest\_plot3'
+]
+ \addplot plot table[x=dof,y=L2] from \tableA;
+ \addplot plot table[x=dof,y=L2] from \tableB;
+ \legend{$d=2$\\$d=3$\\}%
+\end{loglogaxis}
+\end{tikzpicture}
+}
+
+\testsubsection{a table which has no column names}
+\begin{sidewaystable}
+\lstinputlisting{plotdata/pgfplotstest_plotnocolnames}
+\caption{\texttt{plotdata/pgfplotstest\_plotnocolnames}}
+\end{sidewaystable}
+\begin{tikzpicture}
+\begin{loglogaxis}[
+ xlabel=Dof,
+ ylabel=$L_2$ error,
+ title=Read from file `pgfplotstest\_plotnocolnames'
+]
+\addplot plot table[x index=2,y index=3]{plotdata/pgfplotstest_plotnocolnames};
+
+\end{loglogaxis}
+\end{tikzpicture}
+
+}
diff --git a/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.function.tex b/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.function.tex
new file mode 100644
index 00000000000..d82eafd280d
--- /dev/null
+++ b/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.function.tex
@@ -0,0 +1,24 @@
+\testfile{pgfplotstest.function.tex}
+\testsection{`plot function' test}
+\testsubsection{sin(x)}
+\begin{tikzpicture}
+\begin{axis}
+\addplot plot[id=gnuplot_sin,samples=50] function{sin(x)};
+\end{axis}
+\end{tikzpicture}
+
+\testsubsection{exp(x)}
+\testsubsubsection{linear}
+\begin{tikzpicture}
+\begin{axis}
+\addplot plot[id=gnuplot_exp,samples=50,domain=-5:15] function{exp(x)};
+\end{axis}
+\end{tikzpicture}
+
+\testsubsubsection{semilogy}
+\begin{tikzpicture}
+\begin{semilogyaxis}
+\addplot plot[id=gnuplot_exp,samples=50,domain=-5:15] function{exp(x)};
+\end{semilogyaxis}
+\end{tikzpicture}
+
diff --git a/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.gnuplot_exp.gnuplot b/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.gnuplot_exp.gnuplot
new file mode 100644
index 00000000000..9885481c6da
--- /dev/null
+++ b/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.gnuplot_exp.gnuplot
@@ -0,0 +1,2 @@
+set terminal table; set output "pgfplotstest.gnuplot_exp.table"; set format "%.5f"
+set format "\%.7e"; set samples 50; plot [x=-5:15] exp(x)
diff --git a/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.gnuplot_exp.table b/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.gnuplot_exp.table
new file mode 100644
index 00000000000..cf4dcd6694d
--- /dev/null
+++ b/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.gnuplot_exp.table
@@ -0,0 +1,54 @@
+
+#Curve 0 of 1, 50 points
+#x y type
+-5.00000 0.00674 i
+-4.59184 0.01013 i
+-4.18367 0.01524 i
+-3.77551 0.02293 i
+-3.36735 0.03448 i
+-2.95918 0.05186 i
+-2.55102 0.07800 i
+-2.14286 0.11732 i
+-1.73469 0.17645 i
+-1.32653 0.26540 i
+-0.91837 0.39917 i
+-0.51020 0.60037 i
+-0.10204 0.90299 i
+0.30612 1.35815 i
+0.71429 2.04273 i
+1.12245 3.07237 i
+1.53061 4.62101 i
+1.93878 6.95024 i
+2.34694 10.45352 i
+2.75510 15.72265 i
+3.16327 23.64769 i
+3.57143 35.56737 i
+3.97959 53.49519 i
+4.38776 80.45959 i
+4.79592 121.01547 i
+5.20408 182.01364 i
+5.61224 273.75811 i
+6.02041 411.74662 i
+6.42857 619.28862 i
+6.83673 931.44272 i
+7.24490 1400.93894 i
+7.65306 2107.08599 i
+8.06122 3169.16837 i
+8.46939 4766.59625 i
+8.87755 7169.21197 i
+9.28571 10782.87262 i
+9.69388 16218.00868 i
+10.10204 24392.73976 i
+10.51020 36687.96612 i
+10.91837 55180.63453 i
+11.32653 82994.58239 i
+11.73469 124828.22579 i
+12.14286 187748.23013 i
+12.55102 282383.23259 i
+12.95918 424719.26363 i
+13.36735 638800.15552 i
+13.77551 960789.09915 i
+14.18367 1445077.43942 i
+14.59184 2173472.62555 i
+15.00000 3269017.37247 i
+
diff --git a/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.gnuplot_sin.gnuplot b/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.gnuplot_sin.gnuplot
new file mode 100644
index 00000000000..609f9f7e41a
--- /dev/null
+++ b/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.gnuplot_sin.gnuplot
@@ -0,0 +1,2 @@
+set terminal table; set output "pgfplotstest.gnuplot_sin.table"; set format "%.5f"
+set format "\%.7e"; set samples 50; plot [x=-5:5] sin(x)
diff --git a/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.gnuplot_sin.table b/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.gnuplot_sin.table
new file mode 100644
index 00000000000..2feafa78b59
--- /dev/null
+++ b/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.gnuplot_sin.table
@@ -0,0 +1,54 @@
+
+#Curve 0 of 1, 50 points
+#x y type
+-5.00000 0.95892 i
+-4.79592 0.99651 i
+-4.59184 0.99274 i
+-4.38776 0.94777 i
+-4.18367 0.86346 i
+-3.97959 0.74331 i
+-3.77551 0.59231 i
+-3.57143 0.41672 i
+-3.36735 0.22384 i
+-3.16327 0.02167 i
+-2.95918 -0.18140 i
+-2.75510 -0.37694 i
+-2.55102 -0.55684 i
+-2.34694 -0.71362 i
+-2.14286 -0.84079 i
+-1.93878 -0.93306 i
+-1.73469 -0.98660 i
+-1.53061 -0.99919 i
+-1.32653 -0.97032 i
+-1.12245 -0.90116 i
+-0.91837 -0.79461 i
+-0.71429 -0.65508 i
+-0.51020 -0.48836 i
+-0.30612 -0.30136 i
+-0.10204 -0.10186 i
+0.10204 0.10186 i
+0.30612 0.30136 i
+0.51020 0.48836 i
+0.71429 0.65508 i
+0.91837 0.79461 i
+1.12245 0.90116 i
+1.32653 0.97032 i
+1.53061 0.99919 i
+1.73469 0.98660 i
+1.93878 0.93306 i
+2.14286 0.84079 i
+2.34694 0.71362 i
+2.55102 0.55684 i
+2.75510 0.37694 i
+2.95918 0.18140 i
+3.16327 -0.02167 i
+3.36735 -0.22384 i
+3.57143 -0.41672 i
+3.77551 -0.59231 i
+3.97959 -0.74331 i
+4.18367 -0.86346 i
+4.38776 -0.94777 i
+4.59184 -0.99274 i
+4.79592 -0.99651 i
+5.00000 -0.95892 i
+
diff --git a/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.gridtick.tex b/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.gridtick.tex
new file mode 100644
index 00000000000..6ca72bc32e1
--- /dev/null
+++ b/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.gridtick.tex
@@ -0,0 +1,84 @@
+\testfile{pgfplotstest.gridtick.tex}
+\testsection{Grid lines test}
+\begin{tikzpicture}
+ \begin{axis}[xmajorgrids]
+ \smallplotstest
+ \end{axis}
+\end{tikzpicture}
+
+\begin{tikzpicture}
+ \begin{axis}[ymajorgrids,xmajorgrids]
+ \smallplotstest
+ \end{axis}
+\end{tikzpicture}
+
+\begin{tikzpicture}
+ \begin{loglogaxis}[ymajorgrids,xmajorgrids]
+ \loglogtestplot
+ \end{loglogaxis}
+\end{tikzpicture}
+
+\begin{tikzpicture}
+ \begin{loglogaxis}[grid=both]
+ \loglogtestplot
+ \end{loglogaxis}
+\end{tikzpicture}
+
+{
+\pgfplotsset{every major tick/.append style={color=black,thick}}
+\begin{tikzpicture}
+ \begin{loglogaxis}[grid=major]
+ \loglogtestplot
+ \end{loglogaxis}
+\end{tikzpicture}
+
+\pgfplotsset{every minor tick/.append style={color=black,thick}}
+\begin{tikzpicture}
+ \begin{loglogaxis}[grid=both]
+ \loglogtestplot
+ \end{loglogaxis}
+\end{tikzpicture}
+}
+
+\testsection{Tick lines test}
+\begin{tikzpicture}
+ \begin{loglogaxis}[xmajorticks=false,xminorticks=true]
+ \loglogtestplot
+ \end{loglogaxis}
+\end{tikzpicture}
+
+\begin{tikzpicture}
+ \begin{loglogaxis}[ymajorticks=false,yminorticks=false]
+ \loglogtestplot
+ \end{loglogaxis}
+\end{tikzpicture}
+
+\begin{tikzpicture}
+ \begin{loglogaxis}[ticks=none]
+ \loglogtestplot
+ \end{loglogaxis}
+\end{tikzpicture}
+
+\begin{tikzpicture}
+ \begin{loglogaxis}[ticks=major]
+ \loglogtestplot
+ \end{loglogaxis}
+\end{tikzpicture}
+
+\testsection{TikZ-coordinate system ``axis''}
+\begin{tikzpicture}
+\begin{axis}
+\smallplotstest
+\axispath\draw (axis cs:0.5,0.6) -- (axis cs:-1,0);
+\end{axis}
+\end{tikzpicture}
+
+\begin{tikzpicture}
+ \begin{loglogaxis}
+ \axispath\draw
+ (axis cs:18943,2.873391e-05) |- (axis cs:47103,8.437499e-06);
+ \loglogtestplot
+ \end{loglogaxis}
+\end{tikzpicture}
+
+
diff --git a/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.hansmeine_app.tex b/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.hansmeine_app.tex
new file mode 100644
index 00000000000..7f4dbd77ae4
--- /dev/null
+++ b/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.hansmeine_app.tex
@@ -0,0 +1,114 @@
+\testfile{pgfplotstest.hansmeine\_app.tex}
+\testsection{Application example of Hans Meine}
+\begingroup
+This example has been copied with permission from
+
+\noindent
+\url{http://kogs-www.informatik.uni-hamburg.de/~meine/tikz/plots}.
+
+Please note that the first plot's input data as it is found in the url above is slightly shifted compared to the other plots.
+
+\tikzstyle{plot legend}=[
+ rounded corners=2.5pt,inner xsep=3pt,inner ysep=2pt,
+ draw=black!50,fill=white,
+ font=\footnotesize,cells={anchor=center},
+ nodes={inner sep=2pt,text depth=0.15em,rounded corners=0pt,right}]
+
+\tikzstyle{every axis legend}=[plot legend,at={(.85,0.8)},below right]
+%\tikzstyle{every axis y label}=[at={(0,0.5)},xshift=-25pt,rotate=90]
+
+\begin{tikzpicture}[mark size=1.5pt,remember picture]
+
+\begin{axis}[
+ xmin=-5,xmax=5,
+ %ymin=0,ymax=25,
+ %ytick={0,5,...,25},
+ xlabel={arc length distance $t$ from saddle [pixels]},
+ ylabel={boundary indicator value $|\vec{b}_g(t)|$}]
+
+\addplot plot coordinates {
+ (-6.74792,2.41861) (-6.66786,2.41852) (-6.58805,2.41824) (-6.50996,2.41777) (-6.41075,2.41679) (-6.30551,2.41505) (-6.15340,2.41075) (-5.93965,2.40070) (-5.62466,2.37734) (-5.15092,2.32533) (-4.81777,2.27973) (-4.31289,2.20389) (-3.90792,2.14396) (-3.56562,2.09832) (-3.27459,2.06512) (-3.02640,2.04160) (-2.81205,2.02498) (-2.62515,2.01318) (-2.46036,2.00469) (-2.31403,1.99851) (-2.18241,1.99390) (-2.06229,1.99036) (-1.95106,1.98758) (-1.84645,1.98531) (-1.74609,1.98339) (-1.64791,1.98171) (-1.54947,1.98017) (-1.44841,1.97871) (-1.34122,1.97723) (-1.22126,1.97565) (-1.06446,1.97363) (-0.80552,1.97038) (-0.54659,1.96739) (-0.36271,1.96559) (-0.20000,1.96437) (0.00000,1.96349) (0.10000,1.96337) (0.20000,1.96350) (0.40000,1.96457) (0.66334,1.96786) (0.82469,1.97106) (1.00410,1.97577) (1.20014,1.98238) (1.41256,1.99137) (1.64222,2.00335) (1.88995,2.01902) (2.15698,2.03926) (2.44428,2.06507) (2.75132,2.09742) (3.07466,2.13693) (3.40793,2.18352) (3.74762,2.23692) (4.09685,2.29747) (4.45942,2.36533) (4.83307,2.43910) (5.20177,2.51426) (5.54872,2.58624) (5.87085,2.65390) (6.17726,2.71933) (6.47863,2.78542) (6.78862,2.85637) (7.13375,2.94064) (7.59098,3.06389) (8.13953,3.23189) (8.67260,3.41315) (9.39853,3.66690) (9.83987,3.80614) (10.13601,3.88485) (10.36232,3.93412) (10.54394,3.96577) (10.69550,3.98653) (10.83385,4.00111) (10.95513,4.01094) (11.03401,4.01619) (11.09168,4.01963) (11.14379,4.02251) (11.19194,4.02503) (11.28684,4.02965) (11.33618,4.03190) (11.38800,4.03416) (11.44303,4.03643) (11.50199,4.03872) (11.56561,4.04104) (11.63478,4.04335) (11.70991,4.04562) (11.79157,4.04779) (11.87873,4.04976) (11.96931,4.05140) (12.05829,4.05260) (12.14019,4.05335) (12.20972,4.05369) (12.26727,4.05379)
+};
+\addlegendentry{undesired, noise-induced edge}
+
+\addplot[mark=|,red] plot coordinates {
+ (-3.76974,23.44724) (-3.68200,23.44695) (-3.64029,23.44663) (-3.57390,23.44586) (-3.51311,23.44490) (-3.46300,23.44393) (-3.39804,23.44243) (-3.36070,23.44145) (-3.29129,23.43940) (-3.22822,23.43728) (-3.18614,23.43574) (-3.13754,23.43383) (-3.04637,23.42987) (-2.95967,23.42567) (-2.90068,23.42257) (-2.83380,23.41883) (-2.77416,23.41531) (-2.70061,23.41071) (-2.66154,23.40816) (-2.52857,23.39898) (-2.44938,23.39318) (-2.39931,23.38941) (-2.33883,23.38476) (-2.17413,23.37174) (-2.05644,23.36230) (-1.98196,23.35636) (-1.93330,23.35251) (-1.84825,23.34590) (-1.62954,23.32990) (-1.52996,23.32327) (-1.47585,23.31985) (-1.40329,23.31551) (-1.27105,23.30830) (-1.19944,23.30478) (-1.13051,23.30165) (-1.04894,23.29825) (-0.96702,23.29516) (-0.87382,23.29203) (-0.79070,23.28955) (-0.74927,23.28843) (-0.70129,23.28721) (-0.64637,23.28592) (-0.60115,23.28493) (-0.53219,23.28358) (-0.45855,23.28230) (-0.38244,23.28116) (-0.32153,23.28038) (-0.26284,23.27973) (-0.19690,23.27911) (-0.13978,23.27868) (-0.08064,23.27834) (-0.02275,23.27808) (0.00000,23.27801) (0.10000,23.27787) (0.20000,23.27802) (0.27601,23.27832) (0.36681,23.27891) (0.46110,23.27978) (0.55399,23.28091) (0.64198,23.28223) (0.70081,23.28326) (0.75328,23.28427) (0.81782,23.28563) (0.85871,23.28657) (0.93657,23.28849) (0.98295,23.28974) (1.05394,23.29177) (1.14949,23.29476) (1.16854,23.29539) (1.25761,23.29848) (1.31224,23.30049) (1.37408,23.30286) (1.44949,23.30589) (1.51818,23.30877) (1.57749,23.31135) (1.64391,23.31433) (1.69761,23.31680) (1.77152,23.32030) (1.82174,23.32272) (1.88683,23.32592) (1.95135,23.32914) (2.04539,23.33393) (2.09220,23.33636) (2.15071,23.33942) (2.21378,23.34276) (2.27209,23.34589) (2.32331,23.34867) (2.37362,23.35143) (2.42883,23.35450) (2.48828,23.35785) (2.54699,23.36122) (2.60335,23.36450) (2.65867,23.36780) (2.71561,23.37126) (2.77485,23.37495) (2.83543,23.37882) (2.89585,23.38280) (2.95675,23.38694) (3.01953,23.39134) (3.08437,23.39604) (3.15018,23.40099) (3.21683,23.40618) (3.28460,23.41165) (3.35451,23.41750) (3.42648,23.42374) (3.49957,23.43030) (3.57365,23.43717) (3.64867,23.44436) (3.72416,23.45181) (3.80056,23.45956) (3.87760,23.46758) (3.95468,23.47580) (4.03184,23.48421) (4.10882,23.49279) (4.18576,23.50154) (4.26266,23.51047) (4.33974,23.51959) (4.41715,23.52894) (4.49513,23.53857) (4.57441,23.54856) (4.65443,23.55888) (4.73544,23.56957) (4.81782,23.58073) (4.90189,23.59242) (4.98799,23.60474) (5.07646,23.61781) (5.16730,23.63169) (5.26080,23.64652) (5.35672,23.66236) (5.45528,23.67937) (5.55634,23.69766) (5.65938,23.71731) (5.76425,23.73845) (5.87131,23.76132) (5.98009,23.78602) (6.09098,23.81280) (6.20325,23.84165) (6.31760,23.87290) (6.43432,23.90677) (6.55406,23.94363) (6.67738,23.98385) (6.80482,24.02785) (6.93717,24.07624) (7.07526,24.12974) (7.21979,24.18923) (7.37205,24.25606) (7.53441,24.33248) (7.70924,24.42131) (7.89952,24.52650) (8.10836,24.65314) (8.34148,24.80958) (8.60710,25.00889) (8.91106,25.26703) (9.25007,25.59714) (9.68649,26.09883) (10.13522,26.72731) (10.40807,27.17870) (10.65277,27.63495) (10.90256,28.15483) (11.16477,28.76174) (11.44948,29.49245) (11.77047,30.40424) (12.15016,31.59520) (12.65258,33.31831) (13.42664,36.04860) (13.62630,36.71383) (13.83415,37.37658) (14.01722,37.93327) (14.18297,38.41524) (14.33800,38.84736) (14.48085,39.22980) (14.61486,39.57508) (14.74229,39.89128) (14.86436,40.18308) (14.98202,40.45398) (15.09625,40.70715) (15.20802,40.94540) (15.31824,41.17117) (15.42790,41.38667) (15.53783,41.59355) (15.64893,41.79333) (15.76206,41.98717) (15.87814,42.17606) (15.99810,42.36076) (16.12295,42.54179) (16.25372,42.71942) (16.39138,42.89353) (16.53689,43.06372) (16.69101,43.22914) (16.85414,43.38846) (17.02662,43.54044) (17.20801,43.68337) (17.39742,43.81578) (17.59106,43.93517) (17.78192,44.03878) (17.95844,44.12362) (18.11107,44.18940) (18.24056,44.24023) (18.35635,44.28212) (18.46640,44.31902) (18.57116,44.35166) (18.66833,44.37986) (18.75731,44.40398) (18.84002,44.42498) (18.91841,44.44364) (18.99328,44.46033) (19.06445,44.47519) (19.13176,44.48832) (19.19514,44.49987) (19.25495,44.51004) (19.31152,44.51899) (19.36506,44.52686) (19.46346,44.53976) (19.50769,44.54489) (19.58677,44.55300) (19.65524,44.55890) (19.71276,44.56302) (19.78112,44.56692) (19.84673,44.56961) (19.88347,44.57064) (19.97685,44.57176)
+};
+\addlegendentry{real, high-contrast image edge}
+
+\addplot plot coordinates {
+ (-1.15451,10.36685) (-1.07964,10.36621) (-1.02056,10.36481) (-0.96257,10.36271) (-0.90533,10.35997) (-0.84858,10.35665) (-0.79205,10.35281) (-0.73561,10.34850) (-0.67917,10.34380) (-0.62272,10.33880) (-0.56633,10.33358) (-0.50992,10.32825) (-0.45352,10.32290) (-0.39747,10.31767) (-0.34169,10.31266) (-0.28682,10.30800) (-0.23402,10.30388) (-0.18313,10.30031) (-0.12560,10.29684) (-0.03525,10.29280) (0.00000,10.29174) (0.10000,10.29044) (0.20000,10.29175) (0.28114,10.29471) (0.34449,10.29811) (0.44379,10.30512) (0.53029,10.31253) (0.59874,10.31897) (0.66221,10.32520) (0.72320,10.33125) (0.78138,10.33692) (0.83700,10.34216) (0.89028,10.34690) (0.94149,10.35114) (1.03860,10.35813) (1.12980,10.36322) (1.21498,10.36658) (1.29044,10.36838) (1.37969,10.36912)
+};
+\addlegendentry{real, low-contrast image edge}
+
+\addplot plot coordinates {
+ (-3.14098,15.46859) (-3.05005,15.46793) (-3.03205,15.46764) (-2.93375,15.46514) (-2.84266,15.46145) (-2.76309,15.45344) (-2.68022,15.42299) (-2.61653,15.38079) (-2.43041,15.16335) (-2.21648,14.74227) (-1.83556,13.53895) (-1.54884,12.22611) (-1.26239,10.54200) (-0.83897,7.52613) (-0.20000,3.62234) (-0.00000,3.13037) (0.10000,3.06780) (0.20000,3.12986) (0.40000,3.60861) (0.81954,5.76144) (1.21229,8.25063) (1.49830,9.82046) (1.71955,10.77871) (1.91907,11.45069) (2.13743,12.00227) (2.51547,12.56801) (2.54747,12.59468) (2.67448,12.66844) (2.75913,12.68968) (2.82919,12.69491) (2.90099,12.69776) (2.97321,12.69961) (3.00861,12.70015) (3.07604,12.70055)
+};
+\addlegendentry{streamer (converging to real edges)}
+
+\draw[dotted] (axis cs:0,0) -- (axis cs:0,14) node[right] {saddle pos};
+
+\end{axis}
+
+\end{tikzpicture}
+
+
+\testsubsection{With plot file}
+\begin{tikzpicture}[mark size=1.5pt]
+\begin{axis}[
+ xmin=-5,xmax=5,
+ xlabel={arc length distance $t$ from saddle [pixels]},
+ ylabel={boundary indicator value $|\vec{b}_g(t)|$}]
+
+\addplot file {valueplot-flowlines_1.dat};
+\addlegendentry{undesired, noise-induced edge}
+
+\addplot[mark=|,red] file {valueplot-flowlines_2.dat};
+\addlegendentry{real, high-contrast image edge}
+
+\addplot file {valueplot-flowlines_3.dat};
+\addlegendentry{real, low-contrast image edge}
+
+\addplot file {valueplot-flowlines_4.dat};
+\addlegendentry{streamer (converging to real edges)}
+
+\draw[dotted] (axis cs:0,0) -- (axis cs:0,14) node[right] {saddle pos};
+
+\end{axis}
+\end{tikzpicture}
+
+\testsubsection{With plot file and restricted bounding box, centered}
+\begin{center}
+\setlength{\fboxsep}{0pt}%
+\fbox{%
+\begin{tikzpicture}[mark size=1.5pt]
+\begin{pgfinterruptboundingbox}
+\begin{axis}[
+ name=hans example,
+ xmin=-5,xmax=5,
+ xlabel={arc length distance $t$ from saddle [pixels]},
+ ylabel={boundary indicator value $|\vec{b}_g(t)|$}]
+
+\addplot file {valueplot-flowlines_1.dat};
+\addlegendentry{undesired, noise-induced edge}
+
+\addplot[mark=|,red] file {valueplot-flowlines_2.dat};
+\addlegendentry{real, high-contrast image edge}
+
+\addplot file {valueplot-flowlines_3.dat};
+\addlegendentry{real, low-contrast image edge}
+
+\addplot file {valueplot-flowlines_4.dat};
+\addlegendentry{streamer (converging to real edges)}
+
+\draw[dotted] (axis cs:0,0) -- (axis cs:0,14) node[right] {saddle pos};
+
+\end{axis}
+\end{pgfinterruptboundingbox}
+
+\useasboundingbox (hans example.below south west) (hans example.above north east);
+\end{tikzpicture}%
+}%
+\end{center}
+
+\endgroup
diff --git a/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.legend.tex b/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.legend.tex
new file mode 100644
index 00000000000..81dc332cfa5
--- /dev/null
+++ b/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.legend.tex
@@ -0,0 +1,78 @@
+\testfile{pgfplotstest.legend.tex}
+\testsection{Legends}
+\begingroup
+\testsubsection{Old-format legends with two backslashes as separator}
+\begin{tikzpicture}
+\begin{loglogaxis}[title=A test title,xlabel=Dof,ylabel=Error]
+\manylogplotsnolegend
+\legend{one\\two\\three\\four\\five\\six\\}%
+\end{loglogaxis}
+\end{tikzpicture}
+
+\testsubsection{Using comma-separated-legends}
+\begin{tikzpicture}
+\begin{loglogaxis}[title=A test title,xlabel=Dof,ylabel=Error]
+\manylogplotsnolegend
+\legend{one,two,three,four,five,six}%
+\end{loglogaxis}
+\end{tikzpicture}
+
+\testsubsection{testing legend columns}
+\begin{tikzpicture}
+\begin{loglogaxis}[title=A test title,xlabel=Dof,ylabel=Error,legend columns=2]
+\manylogplots
+\end{loglogaxis}
+\end{tikzpicture}
+
+\begin{tikzpicture}
+\begin{loglogaxis}[title=A test title,xlabel=Dof,ylabel=Error,legend columns=3]
+\manylogplots
+\end{loglogaxis}
+\end{tikzpicture}
+
+{
+\pgfplotsset{every axis legend/.append style={inner sep=0pt,nodes={inner sep=0pt}}}
+\begin{tikzpicture}
+\begin{loglogaxis}[title=A test title,xlabel=Dof,ylabel=Error,legend columns=4]
+\manylogplots
+\end{loglogaxis}
+\end{tikzpicture}
+}
+
+{\pgfplotsset{every axis legend/.append style={at={(0.5,-0.2)},anchor=north}}
+\begin{tikzpicture}
+\begin{loglogaxis}[title=A test title,xlabel=Dof,ylabel=Error,legend columns=6]
+\manylogplots
+\end{loglogaxis}
+\end{tikzpicture}
+}%
+
+{\pgfplotsset{every axis legend/.append style={at={(0.5,0.98)},anchor=north,inner sep=0pt}}
+\begin{tikzpicture}
+\begin{loglogaxis}[title=A test title,xlabel=Dof,ylabel=Error,legend columns=-1]
+\manylogplots
+\end{loglogaxis}
+\end{tikzpicture}
+}%
+
+\testsubsection{``legend plot pos'' options}
+\begin{tikzpicture}
+\begin{loglogaxis}[title=A test title,xlabel=Dof,ylabel=Error,legend plot pos=left]
+\manylogplots
+\end{loglogaxis}
+\end{tikzpicture}
+
+\begin{tikzpicture}
+\begin{loglogaxis}[title=A test title,xlabel=Dof,ylabel=Error,legend plot pos=right]
+\manylogplots
+\end{loglogaxis}
+\end{tikzpicture}
+
+\begin{tikzpicture}
+\begin{loglogaxis}[title=A test title,xlabel=Dof,ylabel=Error,legend plot pos=none]
+\manylogplots
+\end{loglogaxis}
+\end{tikzpicture}
+\endgroup
+
+
diff --git a/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.logplotenv.tex b/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.logplotenv.tex
new file mode 100644
index 00000000000..f2bd4e6b2a1
--- /dev/null
+++ b/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.logplotenv.tex
@@ -0,0 +1,142 @@
+\testfile{pgfplotstest.logplotenv.tex}
+
+\testsection{Default options log plot}
+\testsubsection{Default size}
+\begin{tikzpicture}
+\begin{loglogaxis}
+\loglogtestplot
+\end{loglogaxis}
+\end{tikzpicture}
+
+\testsubsection{Small size}
+\begin{tikzpicture}
+\begin{loglogaxis}[width=6cm]
+\loglogtestplot
+\end{loglogaxis}
+\end{tikzpicture}
+%
+\begin{tikzpicture}
+\begin{loglogaxis}[width=6cm]
+\addplot plot coordinates {
+ (5, 8.311600e-03)
+ (9217, 3.261015e-07)
+};
+\end{loglogaxis}
+\end{tikzpicture}
+
+\begin{tikzpicture}
+\begin{loglogaxis}[width=6cm,ytick={1.0e0,1e-2,1e-4}]
+\addplot plot coordinates {
+ (5, 1.1e-00)
+ (9217, 1e-05)
+};
+\end{loglogaxis}
+\end{tikzpicture}
+
+\testsubsection{Very small size}
+\begin{tikzpicture}
+\begin{loglogaxis}[width=4cm]
+\loglogtestplot
+\end{loglogaxis}
+\end{tikzpicture}
+
+\testsubsection{Large size}
+\begin{tikzpicture}
+\begin{loglogaxis}[width=\linewidth]
+\loglogtestplot
+\end{loglogaxis}
+\end{tikzpicture}
+
+\testsubsection{Large size; large range}
+\begin{tikzpicture}
+\begin{loglogaxis}[width=\linewidth]
+\addplot coordinates {
+ (1e0,1e12)
+ (1e16,1e-12)
+};
+\end{loglogaxis}
+\end{tikzpicture}
+
+
+\testsubsection{Extremely small y range for log plot}
+\testsubsubsection{Without extra ticks, enlargelimits=false}
+\begin{tikzpicture}
+\begin{loglogaxis}[
+ enlargelimits=false,
+]
+\addplot coordinates {
+ (1e0,1.5e-4)
+ (1e24,2e-3)
+};
+\end{loglogaxis}
+\end{tikzpicture}
+
+\testsubsubsection{With extra ticks, enlargelimits=false}
+extra y ticks=\{2e-4,3e-4,4e-4,5e-4,6e-4,7e-4,8e-4,9e-4,1.2e-3\}
+
+\begin{tikzpicture}
+\begin{loglogaxis}[
+ enlargelimits=false,
+ extra y ticks={2e-4,3e-4,4e-4,5e-4,6e-4,7e-4,8e-4,9e-4,1.2e-3},
+]
+\addplot coordinates {
+ (1e0,1.5e-4)
+ (1e24,2e-3)
+};
+\end{loglogaxis}
+\end{tikzpicture}
+
+\testsection{Semilogy plot}
+\begin{tikzpicture}
+ \begin{semilogyaxis}[xlabel=Index,ylabel=Value]
+ \addplot[color=blue,mark=*] plot coordinates {
+ (1,8)
+ (2,16)
+ (3,32)
+ (4,64)
+ (5,128)
+ (6,256)
+ (7,512)
+ };
+ \end{semilogyaxis}
+\end{tikzpicture}
+
+\testsection{Semilogx plot}
+\begin{tikzpicture}
+ \begin{semilogxaxis}[xlabel=Index,ylabel=Value]
+ \addplot[color=blue,mark=*] plot coordinates {
+ (8,1)
+ (16,2)
+ (32,3)
+ (64,4)
+ (128,5)
+ (256,6)
+ (512,7)
+ };
+ \end{semilogxaxis}
+\end{tikzpicture}
+
+\testsubsection{Extra ticks}
+Options:
+
+extra x ticks=\{6e0,9e0,2e1,3e1,4e1,5e2,6e2,7e2,8e2,9e2\},
+
+extra x tick style=\{/pgf/number format/sci subscript,font=footnotesize\},
+
+\begin{tikzpicture}
+ \begin{semilogxaxis}[xlabel=Index,ylabel=Value,
+ width=\linewidth,
+ extra x ticks={6e0,9e0,2e1,3e1,4e1,5e2,6e2,7e2,8e2,9e2},
+ extra x tick style={/pgf/number format/sci subscript,font=\footnotesize},
+ ]
+ \addplot[color=blue,mark=*] plot coordinates {
+ (8,1)
+ (16,2)
+ (32,3)
+ (64,4)
+ (128,5)
+ (256,6)
+ (512,7)
+ };
+ \end{semilogxaxis}
+\end{tikzpicture}
diff --git a/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.misc.tex b/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.misc.tex
new file mode 100644
index 00000000000..fcc77133f52
--- /dev/null
+++ b/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.misc.tex
@@ -0,0 +1,171 @@
+\testfile{pgfplotstest.misc.tex}
+\testsection{Paths after addplot}
+\testsubsection{plot coordinates}
+\testsubsubsection{without space after 'coordinates'}
+\begin{tikzpicture}
+\begin{axis}[ymin=-1,ymax=2]
+\addplot+[fill=blue!50!black] coordinates{(0,0.5) (1,1)} |- (axis cs:0,-0.5) -- cycle;
+\end{axis}
+\end{tikzpicture}
+
+\testsubsubsection{with space after 'coordinates'}
+\begin{tikzpicture}
+\begin{axis}[ymin=-1,ymax=2]
+\addplot+[fill=blue!50!black] coordinates {(0,0.5) (1,1)} |- (axis cs:0,-0.5) -- cycle;
+\end{axis}
+\end{tikzpicture}
+
+\testsubsubsection{using closedcycle path}
+\begin{tikzpicture}
+\begin{axis}[ymin=-1,ymax=3]
+\addplot coordinates {(3,0.5) (4,2) (5,1)} ;
+\addplot+[fill=blue!50!black] coordinates {(3,0.5) (4,2) (5,1)}
+ \closedcycle;
+\end{axis}
+\end{tikzpicture}
+
+\testsubsection{plot table}
+\begin{tikzpicture}
+\begin{axis}
+\addplot+[fill=blue!50!black] table[x index=0,y index=1,header=false]{plotdata/pgfplotstest_plot2.gnuplot} |- (axis cs:0,-1) -- cycle;
+\end{axis}
+\end{tikzpicture}
+
+\testsubsection{plot function}
+\begin{tikzpicture}
+\begin{axis}
+\addplot plot[id=parable,domain=-5:5] function{4*x**2 - 5} node[pin=180:{$4x^2-5$}]{};
+\end{axis}
+\end{tikzpicture}
+
+
+\testsection{Title-option}
+\begin{tikzpicture}
+\begin{loglogaxis}[title=A test title,xlabel=Dof,ylabel=Error]
+\loglogtestplot
+\end{loglogaxis}
+\end{tikzpicture}
+
+\testsection{Filter test}
+{%
+\def\myOwnYfilter#1\to#2{%
+ \def#2{0.5}%
+}%
+\begin{tikzpicture}
+%
+\begin{axis}[yfilter={\myOwnYfilter}]
+\addplot plot coordinates {
+ (4,0)
+ (6,1)
+};
+\end{axis}
+\end{tikzpicture}
+
+\begin{tikzpicture}
+\begin{axis}[y filter/.code={\def\pgfmathresult{0.5}}]
+\addplot plot coordinates {
+ (4,0)
+ (6,1)
+};
+\end{axis}
+\end{tikzpicture}
+
+\begin{tikzpicture}
+\begin{axis}[x filter/.code={\ifnum\coordindex>4\def\pgfmathresult{}\fi}]
+\addplot (\x,\x^2);
+\end{axis}
+\end{tikzpicture}
+}%
+
+\testsection{Test for addplot+[...]}
+{
+\pgfplotsset{every axis legend/.append style={at={(1.03,1)},anchor=north west}}
+\begin{enumerate}
+ \item Ohne aenderung:
+
+\begin{tikzpicture}
+\begin{axis}
+\smallplotstest
+
+\addplot plot coordinates {
+ (4,0)
+ (6,1)
+};
+\legend{eins\\zwei\\}%
+\end{axis}
+\end{tikzpicture}
+
+\item MIT aenderung:
+
+\begin{tikzpicture}
+\begin{axis}
+\smallplotstest
+
+\addplot+[only marks] plot coordinates {
+ (4,0)
+ (6,1)
+};
+\legend{eins\\zwei\\}%
+\end{axis}
+\end{tikzpicture}
+\end{enumerate}
+}
+
+\testsection{Hide axis test}
+\begin{tikzpicture}
+ \begin{axis}
+ \smallplotstest
+ \end{axis}
+\end{tikzpicture}
+\begin{tikzpicture}
+ \begin{axis}[hide axis]
+ \smallplotstest
+ \end{axis}
+\end{tikzpicture}
+\vskip 1cm
+\noindent
+\begin{tikzpicture}
+ \begin{axis}[hide axis,title=A plot with hidden axis]
+ \smallplotstest
+ \end{axis}
+\end{tikzpicture}
+\begin{tikzpicture}
+ \begin{axis}[hide axis,title=A plot with hidden axis]
+ \smallplotstest
+ \legend{A legend\\}
+ \end{axis}
+\end{tikzpicture}
+
+
+\testsection{disabledatascaling / disablelogfilter}
+\testsubsection{disabledatascaling}
+\begin{tikzpicture}
+\begin{axis}[disabledatascaling]
+ \smallplotstest
+\end{axis}
+\end{tikzpicture}
+
+\testsubsection{disabledatascaling + explicit limits}
+\begin{tikzpicture}
+\begin{axis}[disabledatascaling, xmin=0, xmax=1, ymin=0, ymax=1]
+ \smallplotstest
+\end{axis}
+\end{tikzpicture}
+
+\testsubsection{disabledatascaling + explicit limits + error bars}
+\begin{tikzpicture}
+\begin{axis}[disabledatascaling, xmin=-0.5, xmax=1.5, ymin=-0.5, ymax=1.5]
+\addplot plot[
+ /pgfplots/error bars/.cd,
+ y dir=both,y explicit,
+ x dir=both,x fixed relative=0.5,
+ error mark=diamond*,
+]
+ coordinates
+ {(0,0) +- (0.5,0.1)
+ (0.1,0.1) +- (0.05,0.2)
+ (0.2,0.2) +- (0,0.05)
+ (0.5,0.5)
+ (1,1)};
+\end{axis}
+\end{tikzpicture}
diff --git a/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.parable.gnuplot b/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.parable.gnuplot
new file mode 100644
index 00000000000..95805571bec
--- /dev/null
+++ b/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.parable.gnuplot
@@ -0,0 +1,2 @@
+set terminal table; set output "pgfplotstest.parable.table"; set format "%.5f"
+set format "\%.7e"; set samples 25; plot [x=-5:5] 4*x**2 - 5
diff --git a/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.parable.table b/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.parable.table
new file mode 100644
index 00000000000..d472640e119
--- /dev/null
+++ b/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.parable.table
@@ -0,0 +1,29 @@
+
+#Curve 0 of 1, 25 points
+#x y type
+-5.00000 95.00000 i
+-4.58333 79.02778 i
+-4.16667 64.44444 i
+-3.75000 51.25000 i
+-3.33333 39.44444 i
+-2.91667 29.02778 i
+-2.50000 20.00000 i
+-2.08333 12.36111 i
+-1.66667 6.11111 i
+-1.25000 1.25000 i
+-0.83333 -2.22222 i
+-0.41667 -4.30556 i
+0.00000 -5.00000 i
+0.41667 -4.30556 i
+0.83333 -2.22222 i
+1.25000 1.25000 i
+1.66667 6.11111 i
+2.08333 12.36111 i
+2.50000 20.00000 i
+2.91667 29.02778 i
+3.33333 39.44444 i
+3.75000 51.25000 i
+4.16667 64.44444 i
+4.58333 79.02778 i
+5.00000 95.00000 i
+
diff --git a/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.plottypes.tex b/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.plottypes.tex
new file mode 100644
index 00000000000..7198e85dea2
--- /dev/null
+++ b/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.plottypes.tex
@@ -0,0 +1,219 @@
+\testfile{pgfplotstest.plottypes.tex}
+\testsection{Stacked plots}
+%\pgfplotsset{every axis/.append style={reverse stacked plots=false}}
+\testsubsection{stack y, sharp plot}
+\begin{tikzpicture}
+%\tracingmacros=2\tracingcommands=2
+ \begin{axis}[stack plots=y,
+ legend style={at={(0.03,0.97)},anchor=north west}
+ ]
+ \addplot coordinates {(0,0) (1,1) (2,1) (3,2)};
+ \addplot coordinates {(0,0) (1,1) (2,1) (3,2)};
+ \addplot coordinates {(0,0) (1,1) (2,1) (3,2)};
+ \legend{1,2,3}%
+ \end{axis}
+%\tracingmacros=0\tracingcommands=0
+\end{tikzpicture}
+
+\testsubsubsection{with closedcycle}
+\begingroup
+\def\example#1{%
+\begin{tikzpicture}
+ \begin{axis}[stack plots=y,
+ legend style={at={(0.03,0.97)},anchor=north west}
+ ]
+ \addplot+[#1] coordinates {(0,0) (1,1) (2,1) (3,2)} \closedcycle;
+ \addplot+[#1] coordinates {(0,0) (1,1) (2,1) (3,2)} \closedcycle;
+ \addplot+[#1] coordinates {(0,0) (1,1) (2,1) (3,2)} \closedcycle;
+ \legend{1,2,3}%
+ \end{axis}
+\end{tikzpicture}
+}
+
+\example{}
+
+\example{fill}
+\endgroup
+
+\testsubsubsection{with closedcycle and const plots}
+\begingroup
+\def\example#1{%
+\begin{tikzpicture}[#1]
+ \begin{axis}[stack plots=y,
+ legend style={at={(0.03,0.97)},anchor=north west}
+ ]
+ \addplot+[fill] coordinates {(0,0.5) (1,1) (2,1) (3,2) (4,2)} \closedcycle;
+ \addplot+[fill] coordinates {(0,0.5) (1,1) (2,1) (3,2) (4,2)} \closedcycle;
+ \addplot+[fill] coordinates {(0,0.5) (1,1) (2,1) (3,2) (4,2)} \closedcycle;
+ \legend{1,2,3}%
+ \end{axis}
+\end{tikzpicture}
+}
+
+\example{const plot mark left}
+
+\example{const plot mark right}
+\endgroup
+
+\testsubsection{stack y, ybar}
+\begin{tikzpicture}
+ \begin{axis}[
+ ybar stacked,
+ legend style={at={(0.03,0.97)},anchor=north west},
+ ]
+ \addplot coordinates {(0,0) (1,1) (2,1) (3,2)};
+ \addplot coordinates {(0,0) (1,1) (2,1) (3,2)};
+ \addplot coordinates {(0,0) (1,1) (2,1) (3,2)};
+ \legend{1,2,3}%
+ \end{axis}
+\end{tikzpicture}
+
+\testsubsection{stack y, ybar, minus}
+\begin{tikzpicture}
+ \begin{axis}[
+ ybar stacked=minus,
+ ]
+ \addplot coordinates {(0,0) (1,1) (2,1) (3,2)};
+ \addplot coordinates {(0,0) (1,1) (2,1) (3,2)};
+ \addplot coordinates {(0,0) (1,1) (2,1) (3,2)};
+ \legend{1,2,3}%
+ \end{axis}
+\end{tikzpicture}
+
+\testsubsection{stack x, sharp plot [not useful]}
+\begin{tikzpicture}
+%\tracingmacros=2\tracingcommands=2
+ \begin{axis}[stack plots=x,
+ legend style={at={(0.97,0.03)},anchor=south east},
+ xtick={0,...,30},
+ ]
+ \addplot coordinates {(2,0) (1,1) (1,2) (3,3)};
+ \addplot coordinates {(2,0) (1,1) (1,2) (3,3)};
+ \addplot coordinates {(2,0) (1,1) (1,2) (3,3)};
+ \legend{1,2,3}%
+ \end{axis}
+%\tracingmacros=0\tracingcommands=0
+\end{tikzpicture}
+
+\testsubsection{stack x, xbar}
+\begin{tikzpicture}
+ \begin{axis}[
+ xbar stacked,
+ xtick={0,...,30},
+ legend style={at={(0.97,0.03)},anchor=south east},
+ ]
+ \addplot coordinates {(2,0) (1,1) (1,2) (3,3)};
+ \addplot coordinates {(2,0) (1,1) (1,2) (3,3)};
+ \addplot coordinates {(2,0) (1,1) (1,2) (3,3)};
+ \legend{1,2,3}%
+ \end{axis}
+\end{tikzpicture}
+
+\testsubsection{stack x, xbar, minus}
+\begin{tikzpicture}
+ \begin{axis}[xbar stacked=minus]
+ \addplot coordinates {(2,0) (1,1) (1,2) (3,3)};
+ \addplot coordinates {(2,0) (1,1) (1,2) (3,3)};
+ \addplot coordinates {(2,0) (1,1) (1,2) (3,3)};
+ \legend{1,2,3}%
+ \end{axis}
+\end{tikzpicture}
+
+\testsection{Bar diagrams}
+{
+\begin{tikzpicture}
+ \begin{axis}[
+ %xmin=1925,xmax=1975,disabledatascaling=false,
+ %xtick={1930,1940,1950,1960,1970},
+ x tick label style={/pgf/number format/set thousands separator=},
+ ylabel=Population,
+ enlargelimits=0.15,
+ legend style={at={(0.5,-0.1)},anchor=north,legend columns=-1},
+ ybar,
+ ]
+%\tracingmacros=2\tracingcommands=2
+ \addplot[draw=blue,mark=none,fill=blue!80!black]
+ plot coordinates {(1930,50e6) (1940,33e6) (1950,40e6) (1960,50e6) (1970,70e6)};
+ \addlegendentry{FarFarAway}
+
+ \addplot[mark=none,red,fill=red!80!black]
+ plot coordinates {(1930,38e6) (1940,42e6) (1950,43e6) (1960,45e6) (1970,65e6)};
+ \addlegendentry{NotSoFar}
+
+ \addplot[mark=none,brown,fill=brown!80!black]
+ plot coordinates {(1930,15e6) (1940,12e6) (1950,13e6) (1960,25e6) (1970,35e6)};
+ \addlegendentry{Near}
+ \end{axis}
+\end{tikzpicture}
+
+\testsubsection{Interval bar handlers}
+\begin{tikzpicture}
+ \begin{axis}[
+ x tick label style={/pgf/number format/set thousands separator=},
+ ylabel=Population,
+ enlargelimits=0.05,
+ legend style={at={(0.5,-0.1)},anchor=north,legend columns=-1},
+ ybar interval=0.7,
+ ]
+ \addplot[draw=blue,mark=none,fill=blue!80!black]
+ plot coordinates {(1930,50e6) (1940,33e6) (1950,40e6) (1960,50e6) (1970,70e6) (1980,70e6)};
+ \addlegendentry{FarFarAway}
+
+ \addplot[mark=none,red,fill=red!80!black]
+ plot coordinates {(1930,38e6) (1940,42e6) (1950,43e6) (1960,45e6) (1970,65e6) (1980,70e6)};
+ \addlegendentry{NotSoFar}
+
+ \addplot[mark=none,brown,fill=brown!80!black]
+ plot coordinates {(1930,15e6) (1940,12e6) (1950,13e6) (1960,25e6) (1970,35e6) (1980,70e6)};
+ \addlegendentry{Near}
+ \end{axis}
+\end{tikzpicture}
+
+\begin{tikzpicture}
+ \begin{axis}[
+ xmin=0,xmax=53,
+ ylabel=Age,
+ xlabel=Quantity,
+ y label style={yshift=0.7cm},
+ enlargelimits=false,
+ ytick={5,10,13,18,21,25,30,50,70},
+ yticklabel={$\pgfmathprintnumber{\tick}$ -- $\pgfmathprintnumber{\nexttick}$},
+ xbar interval,
+ ]
+ \addplot[draw=blue,mark=none,fill=blue!80!black]
+ plot coordinates {(10,5) (10.5,10) (15,13) (24,18) (50,21) (23,25) (10,30) (3,50) (3,70)};
+ \end{axis}
+\end{tikzpicture}
+
+
+\testsection{const plot}
+\begin{tikzpicture}
+ \begin{axis}
+ \addplot+[const plot]
+ coordinates {(0,0.1) (0.1,0.2) (0.2,0.2) (0.3,0.5) (0.4,0.45) (0.5,1) (0.6,1) (0.7,0.1) (0.8,0.15) (0.9,0.2) (1,0.2)};
+ \end{axis}
+\end{tikzpicture}
+
+\testsection{const plot mark right}
+\begin{tikzpicture}
+ \begin{axis}
+ \addplot+[const plot mark right]
+ coordinates {(0,0.1) (0.1,0.2) (0.2,0.2) (0.3,0.5) (0.4,0.45) (0.5,1) (0.6,1) (0.7,0.1) (0.8,0.15) (0.9,0.2) (1,0.2)};
+ \end{axis}
+\end{tikzpicture}
+
+\testsection{jump mark right}
+\begin{tikzpicture}
+ \begin{axis}
+ \addplot+[jump mark right]
+ coordinates {(0,0.1) (0.1,0.2) (0.2,0.2) (0.3,0.5) (0.4,0.45) (0.5,1) (0.6,1) (0.7,0.1) (0.8,0.15) (0.9,0.2) (1,0.2)};
+ \end{axis}
+\end{tikzpicture}
+
+\testsection{jump mark left}
+\begin{tikzpicture}
+ \begin{axis}
+ \addplot+[jump mark left]
+ coordinates {(0,0.1) (0.1,0.2) (0.2,0.2) (0.3,0.5) (0.4,0.45) (0.5,1) (0.6,1) (0.7,0.1) (0.8,0.15) (0.9,0.2) (1,0.2)};
+ \end{axis}
+\end{tikzpicture}
diff --git a/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.scaling.tex b/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.scaling.tex
new file mode 100644
index 00000000000..d52d8024dab
--- /dev/null
+++ b/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.scaling.tex
@@ -0,0 +1,478 @@
+\testfile{pgfplotstest.scaling.tex}
+\testsection{Standard placement normal plot}
+\begin{tikzpicture}
+\begin{axis}
+\smallplotstest
+\end{axis}
+\end{tikzpicture}
+
+
+\testsection{Scaling tests}
+\testsubsection{width=5cm}
+\begin{tikzpicture}
+\begin{axis}[width=5cm]
+\smallplotstest
+\end{axis}
+\end{tikzpicture}
+
+\testsubsection{width=linewidth}
+\begin{tikzpicture}
+\begin{axis}[width=\linewidth]
+\smallplotstest
+\end{axis}
+\end{tikzpicture}
+
+\testsubsection{width=linewidth, height=textheight}
+\begin{tikzpicture}
+\begin{axis}[height=\textheight,width=\linewidth]
+\smallplotstest
+\end{axis}
+\end{tikzpicture}
+
+\testsubsection{height=3cm}
+\begin{tikzpicture}
+\begin{axis}[height=3cm]
+\smallplotstest
+\end{axis}
+\end{tikzpicture}
+
+\testsubsection{x=3cm}
+\hrule width3cm height1pt
+\vskip10pt
+\begin{tikzpicture}[baseline]
+\begin{axis}[x=3cm]
+\smallplotstest
+\end{axis}
+\end{tikzpicture}
+
+\testsubsection{x=3cm, y=4cm}
+\hrule width3cm height1pt
+\noindent
+\vrule height4cm width1pt
+\hskip10pt
+\begin{tikzpicture}[baseline]
+\begin{axis}[x=3cm,y=4cm]
+\smallplotstest
+\end{axis}
+\end{tikzpicture}
+
+\testsubsection{y=3cm}
+\noindent
+\vrule height3cm width1pt
+\hskip10pt
+\begin{tikzpicture}[baseline]
+\begin{axis}[y=3cm]
+\smallplotstest
+\end{axis}
+\end{tikzpicture}
+
+\testsubsection{Scale vs. Datascale trafo}
+All should have the same size; especially the same height.
+This tests the data scale transformation and rounding inaccuracies during the computation of $x$~and~$y$ unit vectors,
+\[ x = \frac{W}{T(\bar x) - T(\underline x)}. \]
+The larger $x$, the higher the scaling accuracy. Large $x$ means small $T(\bar x) - T(\underline x)$ (relative to width~$W$). But this implies low accuracy for the input data! And nobody wants inaccurate plots.
+
+The datascale transformation~$T$ is set up such that $O(W) = O(x)$, but I am not sure if I need to adjust some parameters. Some parameters lead to inaccurate~$x$ and~$y$ vectors, such that axis sizes are \emph{not} the same although $W$~and~$H$ (width and height) are the same.
+
+\noindent
+{\pgfplotsset{every picture/.append style={baseline}}
+\pgfplotsset{every axis/.append style={width=3cm,scale only axis,ytick=\empty,cycle list=blue}}%
+\def\TESTPLOTS{%
+\begin{tikzpicture}%
+\begin{axis}
+\addplot plot coordinates {
+ (0.000000, 0.113142)
+ (0.062500, 0.114457)
+ (0.125000, 0.115773)
+ (0.187500, 0.117088)
+ (0.250000, 0.118404)
+ (0.312500, 0.119719)
+ (0.375000, 0.121035)
+ (0.437500, 0.122350)
+ (0.500000, 0.123666)
+ (0.562500, 0.124981)
+ (0.625000, 0.126297)
+ (0.687500, 0.127612)
+ (0.750000, 0.128928)
+ (0.812500, 0.130243)
+ (0.875000, 0.131559)
+ (0.937500, 0.132874)
+ (1.000000, 0.134190)
+};
+\end{axis}
+\end{tikzpicture}%
+\begin{tikzpicture}%
+\begin{axis}
+\addplot plot coordinates {
+ (0.000000, 0.192392)
+ (0.020408, 0.551660)
+ (0.040816, 0.816371)
+ (0.061224, 0.957528)
+ (0.081633, 0.936301)
+ (0.102041, 0.784097)
+ (0.122449, 0.539922)
+ (0.142857, 0.257432)
+ (0.163265, -0.039651)
+ (0.183673, -0.313379)
+ (0.204082, -0.533386)
+ (0.224490, -0.712582)
+ (0.244898, -0.856655)
+ (0.265306, -0.932880)
+ (0.285714, -0.953862)
+ (0.306122, -0.957749)
+ (0.326531, -0.890993)
+ (0.346939, -0.774152)
+ (0.367347, -0.602360)
+ (0.387755, -0.396801)
+ (0.408163, -0.132261)
+ (0.428571, 0.161664)
+ (0.448980, 0.460018)
+ (0.469388, 0.720198)
+ (0.489796, 0.880398)
+ (0.510204, 0.967384)
+ (0.530612, 0.900632)
+ (0.551020, 0.729232)
+ (0.571429, 0.460479)
+ (0.591837, 0.155311)
+ (0.612245, -0.153827)
+ (0.632653, -0.430787)
+ (0.653061, -0.653561)
+ (0.673469, -0.819444)
+ (0.693878, -0.931060)
+ (0.714286, -0.984394)
+ (0.734694, -0.981970)
+ (0.755102, -0.940272)
+ (0.775510, -0.825804)
+ (0.795918, -0.664138)
+ (0.816327, -0.465371)
+ (0.836735, -0.219185)
+ (0.857143, 0.070697)
+ (0.877551, 0.377456)
+ (0.897959, 0.658660)
+ (0.918367, 0.853564)
+ (0.938776, 0.925472)
+ (0.959184, 0.868936)
+ (0.979592, 0.629528)
+ (1.000000, 0.228732)
+};
+\end{axis}
+\end{tikzpicture}%
+\begin{tikzpicture}%
+\begin{axis}
+
+\addplot plot coordinates {
+ (0.000000, 0.112104)
+ (0.062500, 0.098029)
+ (0.125000, 0.083954)
+ (0.187500, 0.069879)
+ (0.250000, 0.055804)
+ (0.312500, 0.041729)
+ (0.375000, 0.027654)
+ (0.437500, 0.013579)
+ (0.500000, -0.000496)
+ (0.562500, -0.014571)
+ (0.625000, -0.028646)
+ (0.687500, -0.042722)
+ (0.750000, -0.056797)
+ (0.812500, -0.070872)
+ (0.875000, -0.084947)
+ (0.937500, -0.099022)
+ (1.000000, -0.113097)
+};
+\end{axis}
+\end{tikzpicture}%
+\begin{tikzpicture}%
+\begin{axis}
+\addplot plot coordinates {
+ (0.000000, -0.963159)
+ (0.020408, -0.781664)
+ (0.040816, -0.488585)
+ (0.061224, -0.137738)
+ (0.081633, 0.234861)
+ (0.102041, 0.556489)
+ (0.122449, 0.791942)
+ (0.142857, 0.941856)
+ (0.163265, 0.977486)
+ (0.183673, 0.930499)
+ (0.204082, 0.809581)
+ (0.224490, 0.653308)
+ (0.244898, 0.474588)
+ (0.265306, 0.268631)
+ (0.285714, 0.048692)
+ (0.306122, -0.168568)
+ (0.326531, -0.380963)
+ (0.346939, -0.577633)
+ (0.367347, -0.751043)
+ (0.387755, -0.893755)
+ (0.408163, -0.960465)
+ (0.428571, -0.932380)
+ (0.448980, -0.841830)
+ (0.469388, -0.650880)
+ (0.489796, -0.346509)
+ (0.510204, -0.007265)
+ (0.530612, 0.329744)
+ (0.551020, 0.621489)
+ (0.571429, 0.826905)
+ (0.591837, 0.947602)
+ (0.612245, 0.956706)
+ (0.632653, 0.872426)
+ (0.653061, 0.724325)
+ (0.673469, 0.528915)
+ (0.693878, 0.310032)
+ (0.714286, 0.081807)
+ (0.734694, -0.143046)
+ (0.755102, -0.363063)
+ (0.775510, -0.559141)
+ (0.795918, -0.733031)
+ (0.816327, -0.880063)
+ (0.836735, -0.959350)
+ (0.857143, -0.968957)
+ (0.877551, -0.885145)
+ (0.897959, -0.702171)
+ (0.918367, -0.410704)
+ (0.938776, -0.035900)
+ (0.959184, 0.359062)
+ (0.979592, 0.719407)
+ (1.000000, 0.940563)
+};
+\end{axis}
+\end{tikzpicture}%
+}%
+\TESTPLOTS
+
+once more again without `scale only axis':
+\pgfplotsset{every axis/.append style={scale only axis=false}}%
+
+\TESTPLOTS
+}
+
+\testsubsection{Testing numeric artefacts around tick position `0'}
+{\pgfplotsset{every axis/.append style={scaled ticks=false}}
+[scaled ticks=false] in this subsection
+
+\begin{tikzpicture}
+\begin{axis}
+ \addplot coordinates {
+ (-4.5,-8)
+ (16,12)
+ };
+\end{axis}
+\end{tikzpicture}
+
+\begin{tikzpicture}
+\begin{axis}
+ \addplot coordinates {
+ (-0.7,-8)
+ (1.3,12)
+ };
+\end{axis}
+\end{tikzpicture}
+
+\begin{tikzpicture}
+\begin{axis}
+ \addplot coordinates {
+ (-7000,-0.0008)
+ (13000,0.0012)
+ };
+\end{axis}
+\end{tikzpicture}
+}
+
+\testsection{Scaling log plots}
+\hrule
+\nobreak
+\vskip10pt
+\nobreak
+\noindent
+\begin{tikzpicture}
+\begin{loglogaxis}[width=\linewidth]
+\loglogtestplot
+\end{loglogaxis}
+\end{tikzpicture}
+
+\begin{tikzpicture}
+\begin{loglogaxis}[width=\linewidth,height=\textheight]
+\loglogtestplot
+\end{loglogaxis}
+\end{tikzpicture}
+
+\begin{tikzpicture}
+\begin{loglogaxis}[height=5.5cm]
+\loglogtestplot
+\end{loglogaxis}
+\end{tikzpicture}
+
+\testsection{Scaletest}
+
+{
+\pgfplotsset{every axis/.append style={cycle list={%
+ red,only marks,mark options={fill=red!80!black},mark=*\\%
+ black,only marks,mark options={fill=black},mark=square*\\%
+ }}}
+\begin{tikzpicture}
+\begin{axis}[%
+ width=8cm,
+ height=2cm,
+ xtick=\empty,
+ ytick=\empty
+]
+
+\addplot plot coordinates {
+ (0.968555, 0.000000)
+ (0.984277, 0.000000)
+ (0.030884, 0.000000)
+ (0.250000, 0.000000)
+ (0.750000, 0.000000)
+ (0.468750, 0.000000)
+ (0.750000, 0.000000)
+ (0.484375, 0.000000)
+ (0.968555, 0.000000)
+ (0.968555, 0.000000)
+ (1.000000, 0.000000)
+ (1.000000, 0.000000)
+ (0.030176, 0.000000)
+ (0.250000, 0.000000)
+ (0.250000, 0.000000)
+ (0.250000, 0.000000)
+ (0.750000, 0.000000)
+ (1.000000, 0.000000)
+ (0.500000, 0.000000)
+ (0.500000, 0.000000)
+ (0.234375, 0.000000)
+ (0.500000, 0.000000)
+ (0.750000, 0.000000)
+ (0.000000, 0.000000)
+ (0.750000, 0.000000)
+ (0.468750, 0.000000)
+ (0.500000, 0.000000)
+ (0.000000, 0.000000)
+ (0.468750, 0.000000)
+ (0.000000, 0.000000)
+ (0.750000, 0.000000)
+ (0.000000, 0.000000)
+ (0.234375, 0.000000)
+ (1.000000, 0.000000)
+};
+\addplot plot coordinates {
+ (0.367188, 0.000000)
+ (0.625000, 0.000000)
+ (0.312500, 0.000000)
+ (0.656250, 0.000000)
+ (0.312500, 0.000000)
+ (0.148438, 0.000000)
+ (0.125000, 0.000000)
+ (0.640625, 0.000000)
+ (0.136719, 0.000000)
+ (0.875000, 0.000000)
+ (0.390625, 0.000000)
+ (0.828125, 0.000000)
+ (0.875000, 0.000000)
+ (0.656250, 0.000000)
+ (0.125000, 0.000000)
+ (0.343750, 0.000000)
+ (0.861328, 0.000000)
+ (0.312500, 0.000000)
+ (0.578125, 0.000000)
+ (0.578125, 0.000000)
+ (0.625000, 0.000000)
+ (0.375000, 0.000000)
+ (0.875000, 0.000000)
+ (0.812500, 0.000000)
+ (0.847656, 0.000000)
+ (0.589844, 0.000000)
+ (0.343750, 0.000000)
+ (0.125000, 0.000000)
+ (0.875000, 0.000000)
+ (0.125000, 0.000000)
+ (0.609375, 0.000000)
+ (0.156250, 0.000000)
+};
+\end{axis}
+\end{tikzpicture}
+}
+
+\testsection{Scaling test for very small or very large x values}
+{
+\testsubsection{1e-2}
+\begin{tikzpicture}
+\begin{axis}
+ \addplot plot coordinates {
+ (0.005,1)
+ (0.01,2)
+ (0.02,4)
+ };
+\end{axis}
+\end{tikzpicture}
+
+\testsubsection{1e+2}
+% \tracingmacros=2\tracingcommands=2
+\begin{tikzpicture}
+\begin{axis}
+ \addplot plot coordinates {
+ (50,1)
+ (100,2)
+ (200,4)
+ };
+\end{axis}
+\end{tikzpicture}
+% \tracingmacros=0\tracingcommands=0
+
+\testsubsection{x=1e+11; y=1e-6}
+{
+%\pgfplotsset{every x tick label/.append style={font=\Huge}}
+%\pgfplotsset{every x tick scale label/.append style={anchor=base}}
+\begin{tikzpicture}
+\begin{axis}
+ \addplot plot coordinates {
+ (5e10,1e-6)
+ (1e11,2e-6)
+ (2e11,4e-6)
+ };
+\end{axis}
+\end{tikzpicture}
+}
+
+\testsubsection{1e+1}
+\begin{tikzpicture}
+\begin{axis}
+ \addplot plot coordinates {
+ (5,1)
+ (10,2)
+ (20,4)
+ };
+\end{axis}
+\end{tikzpicture}
+
+\testsubsection{1e+3}
+\begin{tikzpicture}
+\begin{axis}
+ \addplot plot coordinates {
+ (0.5,1e3)
+ (10,2e3)
+ (200,4e3)
+ };
+\end{axis}
+\end{tikzpicture}
+
+\testsubsection{1e+4}
+\begin{tikzpicture}
+\begin{axis}
+ \addplot plot coordinates {
+ (0.1,2e4)
+ (0.2,4e4)
+ (0.5,1e4)
+ };
+\end{axis}
+\end{tikzpicture}
+
+\testsubsection{1e-2, 1e+4}
+\begin{tikzpicture}
+\begin{axis}
+ \addplot plot coordinates {
+ (0.01,2e4)
+ (0.02,4e4)
+ (0.05,1e4)
+ };
+\end{axis}
+\end{tikzpicture}
+}
diff --git a/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.sinneg.gnuplot b/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.sinneg.gnuplot
new file mode 100644
index 00000000000..d892082391d
--- /dev/null
+++ b/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.sinneg.gnuplot
@@ -0,0 +1,2 @@
+set terminal table; set output "pgfplotstest.sinneg.table"; set format "%.5f"
+set format "\%.7e"; set samples 40; plot [x=-5:5] sin(x)
diff --git a/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.sinneg.table b/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.sinneg.table
new file mode 100644
index 00000000000..9114bbb94be
--- /dev/null
+++ b/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.sinneg.table
@@ -0,0 +1,44 @@
+
+#Curve 0 of 1, 40 points
+#x y type
+-5.0000000e+00 9.5892427e-01 i
+-4.7435897e+00 9.9951330e-01 i
+-4.4871795e+00 9.7474735e-01 i
+-4.2307692e+00 8.8624579e-01 i
+-3.9743590e+00 7.3979547e-01 i
+-3.7179487e+00 5.4497229e-01 i
+-3.4615385e+00 3.1451512e-01 i
+-3.2051282e+00 6.3492814e-02 i
+-2.9487179e+00 -1.9168108e-01 i
+-2.6923077e+00 -4.3432157e-01 i
+-2.4358974e+00 -6.4856316e-01 i
+-2.1794872e+00 -8.2039728e-01 i
+-1.9230769e+00 -9.3858826e-01 i
+-1.6666667e+00 -9.9540796e-01 i
+-1.4102564e+00 -9.8714112e-01 i
+-1.1538462e+00 -9.1432829e-01 i
+-8.9743590e-01 -7.8173046e-01 i
+-6.4102564e-01 -5.9801779e-01 i
+-3.8461538e-01 -3.7520265e-01 i
+-1.2820513e-01 -1.2785421e-01 i
+1.2820513e-01 1.2785421e-01 i
+3.8461538e-01 3.7520265e-01 i
+6.4102564e-01 5.9801779e-01 i
+8.9743590e-01 7.8173046e-01 i
+1.1538462e+00 9.1432829e-01 i
+1.4102564e+00 9.8714112e-01 i
+1.6666667e+00 9.9540796e-01 i
+1.9230769e+00 9.3858826e-01 i
+2.1794872e+00 8.2039728e-01 i
+2.4358974e+00 6.4856316e-01 i
+2.6923077e+00 4.3432157e-01 i
+2.9487179e+00 1.9168108e-01 i
+3.2051282e+00 -6.3492814e-02 i
+3.4615385e+00 -3.1451512e-01 i
+3.7179487e+00 -5.4497229e-01 i
+3.9743590e+00 -7.3979547e-01 i
+4.2307692e+00 -8.8624579e-01 i
+4.4871795e+00 -9.7474735e-01 i
+4.7435897e+00 -9.9951330e-01 i
+5.0000000e+00 -9.5892427e-01 i
+
diff --git a/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.styledplot.gnuplot b/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.styledplot.gnuplot
new file mode 100644
index 00000000000..4111f8a51c0
--- /dev/null
+++ b/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.styledplot.gnuplot
@@ -0,0 +1,2 @@
+set terminal table; set output "pgfplotstest.styledplot.table"; set format "%.5f"
+set format "\%.7e"; set samples 25; plot [x=-5:5] (40*x**2 - 5*x +3)/2000
diff --git a/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.styledplot.table b/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.styledplot.table
new file mode 100644
index 00000000000..09a6e32bac9
--- /dev/null
+++ b/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.styledplot.table
@@ -0,0 +1,29 @@
+
+#Curve 0 of 1, 25 points
+#x y type
+-5.00000 0.51400 i
+-4.58333 0.43310 i
+-4.16667 0.35914 i
+-3.75000 0.29213 i
+-3.33333 0.23206 i
+-2.91667 0.17893 i
+-2.50000 0.13275 i
+-2.08333 0.09351 i
+-1.66667 0.06122 i
+-1.25000 0.03587 i
+-0.83333 0.01747 i
+-0.41667 0.00601 i
+0.00000 0.00150 i
+0.41667 0.00393 i
+0.83333 0.01331 i
+1.25000 0.02962 i
+1.66667 0.05289 i
+2.08333 0.08310 i
+2.50000 0.12025 i
+2.91667 0.16435 i
+3.33333 0.21539 i
+3.75000 0.27337 i
+4.16667 0.33831 i
+4.58333 0.41018 i
+5.00000 0.48900 i
+
diff --git a/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.styledplot2.gnuplot b/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.styledplot2.gnuplot
new file mode 100644
index 00000000000..0d28a61916f
--- /dev/null
+++ b/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.styledplot2.gnuplot
@@ -0,0 +1,2 @@
+set terminal table; set output "pgfplotstest.styledplot2.table"; set format "%.5f"
+set format "\%.7e"; set samples 25; plot [x=-5:5] (x**5 - 3)/2000
diff --git a/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.styledplot2.table b/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.styledplot2.table
new file mode 100644
index 00000000000..2ccfd17f9fe
--- /dev/null
+++ b/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.styledplot2.table
@@ -0,0 +1,29 @@
+
+#Curve 0 of 1, 25 points
+#x y type
+-5.00000 -1.56400 i
+-4.58333 -1.01279 i
+-4.16667 -0.62943 i
+-3.75000 -0.37229 i
+-3.33333 -0.20726 i
+-2.91667 -0.10704 i
+-2.50000 -0.05033 i
+-2.08333 -0.02112 i
+-1.66667 -0.00793 i
+-1.25000 -0.00303 i
+-0.83333 -0.00170 i
+-0.41667 -0.00151 i
+0.00000 -0.00150 i
+0.41667 -0.00149 i
+0.83333 -0.00130 i
+1.25000 0.00003 i
+1.66667 0.00493 i
+2.08333 0.01812 i
+2.50000 0.04733 i
+2.91667 0.10404 i
+3.33333 0.20426 i
+3.75000 0.36929 i
+4.16667 0.62643 i
+4.58333 1.00979 i
+5.00000 1.56100 i
+
diff --git a/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.styles.tex b/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.styles.tex
new file mode 100644
index 00000000000..164ce85dc08
--- /dev/null
+++ b/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.styles.tex
@@ -0,0 +1,135 @@
+\testfile{pgfplotstest.styles.tex}
+\testsection{Style--tests}
+\testsubsection{Limits in `every axis'; `cycle list' option and `cycle list name' option}
+{
+%\tracingmacros=2\tracingcommands=2
+\pgfplotsset{every linear axis/.append style={xmin=-3,xmax=3}}
+\pgfplotsset{every linear axis/.append style={cycle list name={\blackwhiteplotspeclist}}}
+\pgfplotsset{every loglog axis/.append style={cycle list={green\\yellow\\}}}
+\begin{tikzpicture}
+ \begin{axis}
+ \smallplotstest
+ \end{axis}
+\end{tikzpicture}
+
+\testsubsection{testing `every loglog axis' style}
+\begin{tikzpicture}
+ \begin{loglogaxis}
+ \loglogtestplot
+ \end{loglogaxis}
+\end{tikzpicture}
+}
+
+\testsubsection{Using several `every ...' styles}
+{
+\pgfplotsset{every axis/.append style={ylabel={$L_2$ Error},line width=1pt,mark=*}}
+\pgfplotsset{every axis x label/.append style={name=my x label}}
+\pgfplotsset{every axis legend/.append style={legend columns=2}}
+\pgfplotsset{every loglog axis/.append style={xmin=1e2,xmax=1e4}}
+\begin{tikzpicture}
+ \begin{loglogaxis}[xlabel={A -- quite long -- $x$ label}]
+ \loglogtestplot
+ \end{loglogaxis}
+ \fill[red] (my x label.south east) circle(0.3cm);
+\end{tikzpicture}
+}
+
+\testsubsection{Using the `style=' option}
+{
+\pgfkeys{/pgfplots/my personal axis/.style={ylabel=Mine!,cycle list name=\blackwhiteplotspeclist,title=My personal title,title style={font=\Huge}}}
+\begin{tikzpicture}
+ \begin{loglogaxis}[my personal axis]
+ \loglogtestplot
+ \end{loglogaxis}
+\end{tikzpicture}
+}
+
+\testsubsection{legend style, grid style, x label style etc. options}
+{
+\pgfplotsset{every loglog axis/.append style={legend style={legend columns=2,draw=yellow}}}
+\pgfplotsset{every axis/.append style={grid style={grid=major}}}
+\pgfplotsset{every axis/.append style={x label style={xlabel=Dof,font=\bfseries\Huge},x tick label style={font=\large}}}
+\begin{tikzpicture}
+ \begin{loglogaxis}
+ \loglogtestplot
+ \end{loglogaxis}
+\end{tikzpicture}
+
+\testsubsection{Providing TikZ-options to either tikzpicture or axis}
+\begin{tikzpicture}[color=blue]
+ \begin{loglogaxis}
+ \loglogtestplot
+ \end{loglogaxis}
+\end{tikzpicture}
+
+\begin{tikzpicture}
+ \begin{loglogaxis}[/tikz/color=blue]
+ \loglogtestplot
+ \end{loglogaxis}
+\end{tikzpicture}
+}
+
+\testsubsection{Collecting many options together}
+\begin{tikzpicture}
+ \begin{axis}[
+ legend style={legend columns=2},
+ grid style={draw=brown},
+ grid=major,
+ max space between ticks=25,
+ name=a styled plot,
+ y tick label style={/pgf/number format/fixed zerofill,/pgf/number format/use comma,/pgf/number format/precision=3},
+ tick label style={/pgf/number format/sci,/pgf/number format/sci e,font=\footnotesize},
+ ]
+
+ \addplot plot[id=styledplot] function{(40*x**2 - 5*x +3)/2000};
+ \addlegendentry{$\frac{1}{2000}(40x^2 - 5x +3)$}
+
+ \addplot plot[id=styledplot2] function{(x**5 - 3)/2000};
+ \addlegendentry{$\frac{1}{2000}(x^5 - 3)$}
+
+ \end{axis}
+\end{tikzpicture}
+
+\testsubsubsection{Putting the same options into a style...}
+{\pgfkeys{/pgfplots/my style/.style={
+ legend style={legend columns=2},
+ grid style={draw=brown},
+ grid=major,
+ max space between ticks=25,
+ name=a styled plot,
+ y tick label style={/pgf/number format/fixed zerofill,/pgf/number format/use comma,/pgf/number format/precision=3},
+ tick label style={/pgf/number format/sci,/pgf/number format/sci e,font=\footnotesize},
+ }
+}%
+\begin{tikzpicture}
+ \begin{axis}[my style]
+
+ \addplot plot[id=styledplot] function{(40*x**2 - 5*x +3)/2000};
+ \addlegendentry{$\frac{1}{2000}(40x^2 - 5x +3)$}
+
+ \addplot plot[id=styledplot2] function{(x**5 - 3)/2000};
+ \addlegendentry{$\frac{1}{2000}(x^5 - 3)$}
+
+ \end{axis}
+\end{tikzpicture}
+
+\testsubsection{Line width}
+\testsubsubsection{2pt global}
+{
+\tikzset{every picture/.style={line width=2pt}}
+\begin{tikzpicture}
+ \begin{axis}[grid =major]
+ \addplot coordinates {(0,0) (4,4)};
+ \end{axis}
+\end{tikzpicture}
+}
+
+\testsubsubsection{2pt in every axis}
+{
+\pgfplotsset{every axis/.append style={line width=2pt}}
+\begin{tikzpicture}
+ \begin{axis}[grid =major]
+ \addplot coordinates {(0,0) (4,4)};
+ \end{axis}
+\end{tikzpicture}
+}
diff --git a/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.tex b/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.tex
new file mode 100644
index 00000000000..2d5ca9f0dac
--- /dev/null
+++ b/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.tex
@@ -0,0 +1,182 @@
+\documentclass[a4paper,twocolumn]{report}
+\usepackage[intlimits]{amsmath}
+\usepackage{amssymb}
+\usepackage{amsfonts}
+\usepackage{listings}
+\usepackage{courier}
+\usepackage{rotating}
+\lstset{%
+ basicstyle=\ttfamily,
+ language=[LaTeX]tex, % Seems as if \lstset{language=tex} must be invoked BEFORE loading tikz!?
+ tabsize=4,
+ breaklines=true,
+ breakindent=0pt
+}
+
+\usepackage{ifpdf}
+\ifpdf
+ \usepackage[pdftex]{hyperref}
+ \pdfinfo {
+ /Author (Christian Feuersaenger)
+ }
+ \usepackage[a4paper,noheadfoot,pdftex,left=0.8cm,right=1cm,top=0.8cm,bottom=0.8cm]{geometry}
+
+\else
+ \usepackage[a4paper,noheadfoot,dvipdfm,left=0.8cm,right=1cm,top=0.8cm,bottom=0.8cm]{geometry}
+ \usepackage[dvipdfm]{hyperref}
+ \def\pgfsysdriver{pgfsys-dvipdfm.def}
+\fi
+%\def\pgfsysdriver{pgfsys-pdftex.def}
+\usepackage{pgfplots}
+\usetikzlibrary{patterns}
+
+\pgfrealjobname{pgfplotstest}
+
+\def\testfile#1{\chapter{#1}}
+\def\testsection#1{\message{STARTING TEST SECTION '#1'}\section{#1}}
+\def\testsubsection#1{\message{STARTING TEST SUBSECTION '#1'}\subsection{#1}}
+\def\testsubsubsection#1{\message{STARTING TEST SUBSUBSECTION '#1'}\subsubsection{#1}}
+
+\def\smallplotstest{%
+\addplot[smooth,blue,mark=*] coordinates {
+ (-1, 1)
+ (-0.75, 0.5625)
+ (-0.5, 0.25)
+ (-0.25, 0.0625)
+ (0, 0)
+ (0.25, 0.0625)
+ (0.5, 0.25)
+ (0.75, 0.5625)
+ (1, 1)
+};
+}
+
+\def\loglogtestplot{
+\addplot plot coordinates {
+ (5, 8.311600e-02)
+ (17, 2.546856e-02)
+ (49, 7.407153e-03)
+ (129, 2.101922e-03)
+ (321, 5.873530e-04)
+ (769, 1.622699e-04)
+ (1793, 4.442489e-05)
+ (4097, 1.207141e-05)
+ (9217, 3.261015e-06)
+};
+\addlegendentry{$d=2$}
+
+\addplot plot coordinates {
+ (7, 8.471784e-02)
+ (31, 3.044093e-02)
+ (111, 1.022145e-02)
+ (351, 3.303463e-03)
+ (1023, 1.038865e-03)
+ (2815, 3.196465e-04)
+ (7423, 9.657898e-05)
+ (18943, 2.873391e-05)
+ (47103, 8.437499e-06)
+};
+\addlegendentry{$d=3$}
+}%
+
+\def\manylogplotsnolegend{%
+ \addplot plot coordinates {
+ (5, 8.312e-02)
+ (17, 2.547e-02)
+ (49, 7.407e-03)
+ (129, 2.102e-03)
+ (321, 5.874e-04)
+ (769, 1.623e-04)
+ (1793, 4.442e-05)
+ (4097, 1.207e-05)
+ (9217, 3.261e-06)
+ };
+
+ \addplot plot coordinates {
+ (7, 8.472e-02)
+ (31, 3.044e-02)
+ (111, 1.022e-02)
+ (351, 3.303e-03)
+ (1023, 1.039e-03)
+ (2815, 3.196e-04)
+ (7423, 9.658e-05)
+ (18943, 2.873e-05)
+ (47103, 8.437e-06)
+ };
+
+ \addplot plot coordinates {
+ (9, 7.881e-02)
+ (49, 3.243e-02)
+ (209, 1.232e-02)
+ (769, 4.454e-03)
+ (2561, 1.551e-03)
+ (7937, 5.236e-04)
+ (23297, 1.723e-04)
+ (65537, 5.545e-05)
+ (178177, 1.751e-05)
+ };
+
+ \addplot plot coordinates {
+ (11, 6.887e-02)
+ (71, 3.177e-02)
+ (351, 1.341e-02)
+ (1471, 5.334e-03)
+ (5503, 2.027e-03)
+ (18943, 7.415e-04)
+ (61183, 2.628e-04)
+ (187903, 9.063e-05)
+ (553983, 3.053e-05)
+ };
+
+ \addplot plot coordinates {
+ (13, 5.755e-02)
+ (97, 2.925e-02)
+ (545, 1.351e-02)
+ (2561, 5.842e-03)
+ (10625, 2.397e-03)
+ (40193, 9.414e-04)
+ (141569, 3.564e-04)
+ (471041, 1.308e-04)
+ (1496065, 4.670e-05)
+ };
+ \legend{$d=2$\\$d=3$\\$d=4$\\$d=5$\\$d=6$\\}
+}%
+
+\def\manylogplots{%
+ \manylogplotsnolegend
+ \legend{$d=2$\\$d=3$\\$d=4$\\$d=5$\\$d=6$\\}
+}%
+
+%\includeonly{pgfplotstest.axislines}
+
+\parindent=0pt
+\parskip=5pt
+
+\author{Christian Feuers\"anger}
+\title{Tests for pgfplots.sty}
+
+\begin{document}
+\maketitle
+\tableofcontents
+
+\raggedbottom
+
+\include{pgfplotstest.file}
+\include{pgfplotstest.function}
+\include{pgfplotstest.expr}
+\include{pgfplotstest.axispath}%
+\include{pgfplotstest.axislines}
+\include{pgfplotstest.scaling}
+\include{pgfplotstest.ticks}
+\include{pgfplotstest.enlargelimits}
+\include{pgfplotstest.logplotenv}
+\include{pgfplotstest.hansmeine_app}
+\include{pgfplotstest.legend}
+\include{pgfplotstest.misc}
+\include{pgfplotstest.align}
+\include{pgfplotstest.gridtick}
+\include{pgfplotstest.styles}
+\include{pgfplotstest.errorbars}%
+\include{pgfplotstest.plottypes}
+
+\end{document}
diff --git a/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.ticks.tex b/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.ticks.tex
new file mode 100644
index 00000000000..e687e1055e2
--- /dev/null
+++ b/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.ticks.tex
@@ -0,0 +1,296 @@
+\testfile{pgfplotstest.ticks.tex}
+\testsection{Minor ticks}
+\begin{tikzpicture}
+\begin{axis}[minor tick num=3]
+\smallplotstest
+\end{axis}
+\end{tikzpicture}
+%\endinput
+\begin{tikzpicture}
+\begin{axis}[minor tick num=1]
+\smallplotstest
+\end{axis}
+\end{tikzpicture}
+
+\begin{tikzpicture}
+\begin{axis}[minor tick num=5]
+\smallplotstest
+\end{axis}
+\end{tikzpicture}
+
+\begin{tikzpicture}
+%\tracingmacros=2\tracingcommands=2
+\begin{axis}[minor tick num=5,xtick={0.5,1,2,2.5,3}]
+\smallplotstest
+\end{axis}
+%\tracingmacros=0\tracingcommands=0
+\end{tikzpicture}
+
+\testsection{Tick placement}
+\begin{tikzpicture}
+\begin{axis}[
+ xtick={-1.5,-1,...,1.5},
+ ytick={-0.5,0,...,1.5},
+ ]
+\smallplotstest
+\end{axis}
+\end{tikzpicture}
+
+\begin{tikzpicture}
+\begin{axis}[
+ xmin=0,xmax=1,
+ xtick={-1.5,-1.25,...,1.5}]
+\smallplotstest
+\end{axis}
+\end{tikzpicture}
+
+\testsubsection{xtick=data}
+\begin{tikzpicture}
+\begin{axis}[xtick=data,xmajorgrids]
+\addplot coordinates {(0,0) (0.4,1) (1,2) (1.2,3) (4,5)};
+\end{axis}
+\end{tikzpicture}
+
+\begin{tikzpicture}
+\begin{axis}[xtick=data,xmajorgrids]
+\addplot coordinates {(0,0) (0.4,1) (1,2) (1.2,3) (4,5)};
+\addplot coordinates {(0.1,1) (0.5,2) (1.2,3)};
+\end{axis}
+\end{tikzpicture}
+
+\begin{tikzpicture}
+\begin{loglogaxis}[xtick=data,xmajorgrids]
+\loglogtestplot
+\end{loglogaxis}
+\end{tikzpicture}
+
+\testsubsubsection{ytick=data}
+\begin{tikzpicture}
+\begin{axis}[ytick=data,ymajorgrids]
+\addplot coordinates {(0,0) (0.4,1) (1,2) (1.2,3) (4,5)};
+\addplot coordinates {(0.1,1) (0.5,2) (1.2,3)};
+\end{axis}
+\end{tikzpicture}
+
+\begin{tikzpicture}
+\begin{loglogaxis}[ytick=data,ymajorgrids]
+\loglogtestplot
+\end{loglogaxis}
+\end{tikzpicture}
+
+\testsubsection{ticks on axis rectangle}
+First plot: default tick style; second plot: red, third: 'help lines'
+
+{\pgfplotsset{every axis/.append style={
+ enlargelimits=false,
+ xmin=-40,xmax=40,ymin=-40,ymax=40,
+ xtick={-40,0,40},
+ ytick={-40,0,40}
+}}%
+\begin{tikzpicture}
+\begin{axis}[
+]
+\addplot coordinates {(-40,-40) (40,40)};
+\end{axis}
+\end{tikzpicture}
+\begin{tikzpicture}
+\begin{axis}[
+ tick style={red,line width=5pt,major tick length=20pt},
+]
+\addplot coordinates {(-40,-40) (40,40)};
+\end{axis}
+\end{tikzpicture}
+\begin{tikzpicture}
+\begin{axis}[
+ tick style={help lines},
+]
+\addplot coordinates {(-40,-40) (40,40)};
+\end{axis}
+\end{tikzpicture}
+}
+
+\testsubsection{modified labels}
+
+{
+\pgfplotsset{every axis label/.style={}}
+\pgfplotsset{every axis x label/.style={
+ at={(0.5,1)},
+ above,
+ yshift=+15pt}}
+\pgfplotsset{every axis y label/.style={
+ at={(1,0.5)},
+ xshift=+35pt,
+ rotate=90}}
+
+\begin{tikzpicture}
+\begin{axis}[
+ xlabel=$x$ axis,
+ ylabel=$y$ axis,
+ xmin=0,xmax=1,
+ tickpos=right,
+ xtick={-1.5,-1.25,...,1.5}]
+\smallplotstest
+\end{axis}
+\end{tikzpicture}
+}
+
+\begin{tikzpicture}
+\begin{axis}[
+ xlabel=$x$ axis,
+ ylabel=$y$ axis,
+ xmin=0,xmax=1,
+ tickpos=both,
+ xtick={-1.5,-1.25,...,1.5}]
+\smallplotstest
+\end{axis}
+\end{tikzpicture}
+
+\testsection{Tick label assigment tests}
+\testsubsection{Using xticklabel and xtick}
+\begin{tikzpicture}
+\begin{axis}[
+ xtick={-1.5,-1,...,1.5},
+ xticklabel={%
+ \ifcase\ticknum $-1\frac12$%
+ \or $-1$%
+ \or $-\frac12$%
+ \or $0$%
+ \or $\frac12$%
+ \or $1$%
+ \or $1\frac12$%
+ \else $\tick$%
+ \fi
+ }
+]
+\smallplotstest
+\end{axis}
+\end{tikzpicture}
+
+\testsubsection{Using xticklabels}%
+\begin{tikzpicture}
+\begin{axis}[
+ xtick={-1.5,-1,...,1.5},
+ xticklabels={%
+ $-1\frac 12$,
+ $-1$,
+ $-\frac 12$,
+ $0$,
+ $\frac 12$,
+ $1$}
+]
+\smallplotstest
+\end{axis}
+\end{tikzpicture}
+
+\testsubsection{With xtick labels and commas by hand}
+\begin{tikzpicture}
+\begin{axis}[
+ xtick={-1.5,-1,...,1.5},
+ xticklabels={%
+ {-1,5},
+ -1,
+ {-0,5},
+ 0,
+ {0,5},
+ 1,
+ {1,5}}
+]
+\smallplotstest
+\end{axis}
+\end{tikzpicture}
+
+{
+\testsubsection{Only with auto number formatting options; different for x and y}
+%\tracingmacros=2\tracingcommands=2
+\begin{tikzpicture}
+\begin{axis}[
+ xtick={-1.5,-1,...,1.5},
+ x tick label style={/pgf/number format/use comma},
+ y tick label style={/pgf/number format/.cd,use comma,fixed zerofill,precision=3},
+]
+\smallplotstest
+\end{axis}
+\end{tikzpicture}
+}
+
+\testsubsection{Using yticklabels in logplot}%
+{
+\def\tickformat#1{1e#1}%
+\begin{tikzpicture}
+\begin{loglogaxis}[
+ ytick={1e-8,1e-7,1e-6,1e-5,1e-4,1e-3,1e-2,1e-1,1e0,1e1},
+ yticklabels={%
+ \tickformat{-8},
+ \tickformat{-7},
+ \tickformat{-6},
+ \tickformat{-5},
+ \tickformat{-4},
+ \tickformat{-3},
+ \tickformat{-2},
+ \tickformat{-1},
+ \tickformat{-0}}
+]
+\loglogtestplot
+\end{loglogaxis}
+\end{tikzpicture}
+}
+
+\testsection{Tick/Tick-Label placement log plots}
+\testsubsection{ytickten}
+\begin{tikzpicture}
+\begin{loglogaxis}[
+ %xmin=0.99e2,xmax=1e4,
+ ytickten={-5,-4,-3.6,-3,-2,-1,0},
+ yticklabel={
+ \ifnum\ticknum=2
+ $\rightarrow$
+ \else
+ \axisdefaultticklabellog
+ \fi
+ }
+]
+\loglogtestplot
+\end{loglogaxis}
+\end{tikzpicture}
+
+\testsubsection{ytick}
+\begin{tikzpicture}
+\begin{loglogaxis}[
+ ytick={1e-5,1e-4,0.000251188643,1e-3,1e-2,1e-1,1e0},
+]
+\loglogtestplot
+\end{loglogaxis}
+\end{tikzpicture}
+
+\testsubsection{extra y ticks}
+\begin{tikzpicture}
+\begin{loglogaxis}[
+ extra y ticks={0.000251188643,5e-2},
+]
+\loglogtestplot
+\end{loglogaxis}
+\end{tikzpicture}
+
+\testsubsection{extra y ticks and formatted label}
+\begin{tikzpicture}
+\begin{loglogaxis}[
+ extra y ticks={0.000251188643,5e-2},
+]
+\loglogtestplot
+\end{loglogaxis}
+\end{tikzpicture}
+
+\testsubsection{extra x and y ticks, linear plot}
+\begin{tikzpicture}
+\begin{axis}[
+ xmin=0,xmax=3,ymin=0,ymax=15,
+ extra y ticks={2.71828},
+ extra y tick labels={$e$},
+ extra x ticks={2.2},
+ extra x tick style={grid=major,/pgfplots/tick label style={rotate=90,anchor=east}},
+ extra x tick labels={Cut}
+]
+ \addplot (\x,{exp(\x)});
+ \addlegendentry{$e^x$}
+\end{axis}
+\end{tikzpicture}
diff --git a/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/plotdata/pgfplotstest_plot b/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/plotdata/pgfplotstest_plot
new file mode 100644
index 00000000000..8d428466c93
--- /dev/null
+++ b/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/plotdata/pgfplotstest_plot
@@ -0,0 +1,11 @@
+G Basis dof L2 L2_abserror A Lmax Lmax_relerror cgiter cgiter_err maxlevel eps
+$flags int int int sci:8 sci:8 sci:8 sci:8 sci:8 int sci:8 int std:8
+5 5 5 8.31160034e-02 1e-2 0.00000000e+00 1.80007647e-01 0 2 1 2 -1
+17 17 17 2.54685628e-02 0 0.00000000e+00 3.75580565e-02 0.7 5 1 3 -1
+49 49 49 7.40715288e-03 5e-3 0.00000000e+00 1.49212716e-02 0.5 11 2 4 -1
+129 129 129 2.10192154e-03 1e-1 0.00000000e+00 4.23330523e-03 0.9 26 3 5 -1
+321 321 321 5.87352989e-04 0 0.00000000e+00 1.30668515e-03 0.2 43 3 6 -1
+769 769 769 1.62269942e-04 1e-4 0.00000000e+00 3.88658098e-04 0.25 49 2 7 -1
+1793 1793 1793 4.44248889e-05 1e-5 0.00000000e+00 1.12651668e-04 0.4 52 0 8 -1
+4097 4097 4097 1.20714122e-05 0.5e-5 0.00000000e+00 3.20339285e-05 0.3 56 4 9 -1
+9217 9217 9217 3.26101452e-06 0.7e-6 0.00000000e+00 8.97617707e-06 0.5 59 3 10 -1
diff --git a/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/plotdata/pgfplotstest_plot2.gnuplot b/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/plotdata/pgfplotstest_plot2.gnuplot
new file mode 100644
index 00000000000..d3f7299e19e
--- /dev/null
+++ b/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/plotdata/pgfplotstest_plot2.gnuplot
@@ -0,0 +1,22 @@
+#Curve 0 of 1, 20 points
+#x y type
+0.00000 0.00000 i
+0.52632 0.50235 i
+1.05263 0.86873 i
+1.57895 0.99997 i
+2.10526 0.86054 i
+2.63158 0.48819 i
+3.15789 -0.01630 i
+3.68421 -0.51638 i
+4.21053 -0.87669 i
+4.73684 -0.99970 i
+5.26316 -0.85212 i
+5.78947 -0.47390 i
+6.31579 0.03260 i
+6.84211 0.53027 i
+7.36842 0.88441 i
+7.89474 0.99917 i
+8.42105 0.84348 i
+8.94737 0.45948 i
+9.47368 -0.04889 i
+10.00000 -0.54402 i
diff --git a/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/plotdata/pgfplotstest_plot3 b/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/plotdata/pgfplotstest_plot3
new file mode 100644
index 00000000000..831bfd75ae7
--- /dev/null
+++ b/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/plotdata/pgfplotstest_plot3
@@ -0,0 +1,11 @@
+G Basis dof L2 A Lmax cgiter maxlevel eps
+$flags int int int sci:8 sci:8 sci:8 int int std:8
+7 7 7 8.47178381e-02 0.00000000e+00 2.40709867e-01 2 2 -1
+31 31 31 3.04409349e-02 0.00000000e+00 7.83790314e-02 5 3 -1
+111 111 111 1.02214539e-02 0.00000000e+00 3.08129583e-02 12 4 -1
+351 351 351 3.30346265e-03 0.00000000e+00 1.04183980e-02 29 5 -1
+1023 1023 1023 1.03886535e-03 0.00000000e+00 3.27014492e-03 46 6 -1
+2815 2815 2815 3.19646457e-04 0.00000000e+00 9.82705632e-04 53 7 -1
+7423 7423 7423 9.65789766e-05 0.00000000e+00 2.98443097e-04 57 8 -1
+18943 18943 18943 2.87339125e-05 0.00000000e+00 8.86501125e-05 62 9 -1
+47103 47103 47103 8.43749881e-06 0.00000000e+00 2.62313540e-05 66 10 -1
diff --git a/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/plotdata/pgfplotstest_plot4 b/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/plotdata/pgfplotstest_plot4
new file mode 100644
index 00000000000..89ba1a0e1fe
--- /dev/null
+++ b/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/plotdata/pgfplotstest_plot4
@@ -0,0 +1,25 @@
+#Curve 0 of 1, 20 points
+# .5*x**3 - 4*x**2 -16*x**1
+#x y type
+-40.00000 -37760.00000 i
+-35.78947 -27472.03966 i
+-31.57895 -19229.39204 i
+-27.36842 -12808.11780 i
+-23.15789 -7984.27759 i
+-18.94737 -4533.93206 i
+-14.73684 -2233.14186 i
+-10.52632 -857.96763 i
+-6.31579 -184.47004 i
+-2.10526 11.29028 i
+2.10526 -46.74734 i
+6.31579 -134.64353 i
+10.52632 -28.45896 i
+14.73684 495.74574 i
+18.94737 1661.90990 i
+23.15789 3693.97288 i
+27.36842 6815.87403 i
+31.57895 11251.55270 i
+35.78947 17224.94824 i
+40.00000 24960.00000 i
+
+
diff --git a/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/plotdata/pgfplotstest_plot5 b/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/plotdata/pgfplotstest_plot5
new file mode 100644
index 00000000000..762342c8d1a
--- /dev/null
+++ b/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/plotdata/pgfplotstest_plot5
@@ -0,0 +1,24 @@
+
+#Curve 0 of 1, 20 points
+#x y type
+0.00000 0.00000 i
+0.52632 0.50235 i
+1.05263 0.86873 i
+1.57895 0.99997 i
+2.10526 0.86054 i
+2.63158 0.48819 i
+3.15789 -0.01630 i
+3.68421 -0.51638 i
+4.21053 -0.87669 i
+4.73684 -0.99970 i
+5.26316 -0.85212 i
+5.78947 -0.47390 i
+6.31579 0.03260 i
+6.84211 0.53027 i
+7.36842 0.88441 i
+7.89474 0.99917 i
+8.42105 0.84348 i
+8.94737 0.45948 i
+9.47368 -0.04889 i
+10.00000 -0.54402 i
+
diff --git a/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/plotdata/pgfplotstest_plotnocolnames b/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/plotdata/pgfplotstest_plotnocolnames
new file mode 100644
index 00000000000..8a2ada39896
--- /dev/null
+++ b/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/plotdata/pgfplotstest_plotnocolnames
@@ -0,0 +1,9 @@
+5 5 5 8.31160034e-02 0.00000000e+00 1.80007647e-01 2 2 -1
+17 17 17 2.54685628e-02 0.00000000e+00 3.75580565e-02 5 3 -1
+49 49 49 7.40715288e-03 0.00000000e+00 1.49212716e-02 11 4 -1
+129 129 129 2.10192154e-03 0.00000000e+00 4.23330523e-03 26 5 -1
+321 321 321 5.87352989e-04 0.00000000e+00 1.30668515e-03 43 6 -1
+769 769 769 1.62269942e-04 0.00000000e+00 3.88658098e-04 49 7 -1
+1793 1793 1793 4.44248889e-05 0.00000000e+00 1.12651668e-04 52 8 -1
+4097 4097 4097 1.20714122e-05 0.00000000e+00 3.20339285e-05 56 9 -1
+9217 9217 9217 3.26101452e-06 0.00000000e+00 8.97617707e-06 59 10 -1
diff --git a/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/valueplot-flowlines_1.dat b/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/valueplot-flowlines_1.dat
new file mode 100644
index 00000000000..f2e39d6f697
--- /dev/null
+++ b/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/valueplot-flowlines_1.dat
@@ -0,0 +1,92 @@
+-6.84792 2.41861
+-6.76786 2.41852
+-6.68805 2.41824
+-6.60996 2.41777
+-6.51075 2.41679
+-6.40551 2.41505
+-6.25340 2.41075
+-6.03965 2.40070
+-5.72466 2.37734
+-5.25092 2.32533
+-4.91777 2.27973
+-4.41289 2.20389
+-4.00792 2.14396
+-3.66562 2.09832
+-3.37459 2.06512
+-3.12640 2.04160
+-2.91205 2.02498
+-2.72515 2.01318
+-2.56036 2.00469
+-2.41403 1.99851
+-2.28241 1.99390
+-2.16229 1.99036
+-2.05106 1.98758
+-1.94645 1.98531
+-1.84609 1.98339
+-1.74791 1.98171
+-1.64947 1.98017
+-1.54841 1.97871
+-1.44122 1.97723
+-1.32126 1.97565
+-1.16446 1.97363
+-0.90552 1.97038
+-0.64659 1.96739
+-0.46271 1.96559
+-0.30000 1.96437
+-0.10000 1.96349
+0.00000 1.96337
+0.10000 1.96350
+0.30000 1.96457
+0.56334 1.96786
+0.72469 1.97106
+0.90410 1.97577
+1.10014 1.98238
+1.31256 1.99137
+1.54222 2.00335
+1.78995 2.01902
+2.05698 2.03926
+2.34428 2.06507
+2.65132 2.09742
+2.97466 2.13693
+3.30793 2.18352
+3.64762 2.23692
+3.99685 2.29747
+4.35942 2.36533
+4.73307 2.43910
+5.10177 2.51426
+5.44872 2.58624
+5.77085 2.65390
+6.07726 2.71933
+6.37863 2.78542
+6.68862 2.85637
+7.03375 2.94064
+7.49098 3.06389
+8.03953 3.23189
+8.57260 3.41315
+9.29853 3.66690
+9.73987 3.80614
+10.03601 3.88485
+10.26232 3.93412
+10.44394 3.96577
+10.59550 3.98653
+10.73385 4.00111
+10.85513 4.01094
+10.93401 4.01619
+10.99168 4.01963
+11.04379 4.02251
+11.09194 4.02503
+11.18684 4.02965
+11.23618 4.03190
+11.28800 4.03416
+11.34303 4.03643
+11.40199 4.03872
+11.46561 4.04104
+11.53478 4.04335
+11.60991 4.04562
+11.69157 4.04779
+11.77873 4.04976
+11.86931 4.05140
+11.95829 4.05260
+12.04019 4.05335
+12.10972 4.05369
+12.16727 4.05379
diff --git a/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/valueplot-flowlines_2.dat b/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/valueplot-flowlines_2.dat
new file mode 100644
index 00000000000..8549ce86ded
--- /dev/null
+++ b/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/valueplot-flowlines_2.dat
@@ -0,0 +1,221 @@
+-3.86974 23.44724
+-3.78200 23.44695
+-3.74029 23.44663
+-3.67390 23.44586
+-3.61311 23.44490
+-3.56300 23.44393
+-3.49804 23.44243
+-3.46070 23.44145
+-3.39129 23.43940
+-3.32822 23.43728
+-3.28614 23.43574
+-3.23754 23.43383
+-3.14637 23.42987
+-3.05967 23.42567
+-3.00068 23.42257
+-2.93380 23.41883
+-2.87416 23.41531
+-2.80061 23.41071
+-2.76154 23.40816
+-2.62857 23.39898
+-2.54938 23.39318
+-2.49931 23.38941
+-2.43883 23.38476
+-2.27413 23.37174
+-2.15644 23.36230
+-2.08196 23.35636
+-2.03330 23.35251
+-1.94825 23.34590
+-1.72954 23.32990
+-1.62996 23.32327
+-1.57585 23.31985
+-1.50329 23.31551
+-1.37105 23.30830
+-1.29944 23.30478
+-1.23051 23.30165
+-1.14894 23.29825
+-1.06702 23.29516
+-0.97382 23.29203
+-0.89070 23.28955
+-0.84927 23.28843
+-0.80129 23.28721
+-0.74637 23.28592
+-0.70115 23.28493
+-0.63219 23.28358
+-0.55855 23.28230
+-0.48244 23.28116
+-0.42153 23.28038
+-0.36284 23.27973
+-0.29690 23.27911
+-0.23978 23.27868
+-0.18064 23.27834
+-0.12275 23.27808
+-0.10000 23.27801
+0.00000 23.27787
+0.10000 23.27802
+0.17601 23.27832
+0.26681 23.27891
+0.36110 23.27978
+0.45399 23.28091
+0.54198 23.28223
+0.60081 23.28326
+0.65328 23.28427
+0.71782 23.28563
+0.75871 23.28657
+0.83657 23.28849
+0.88295 23.28974
+0.95394 23.29177
+1.04949 23.29476
+1.06854 23.29539
+1.15761 23.29848
+1.21224 23.30049
+1.27408 23.30286
+1.34949 23.30589
+1.41818 23.30877
+1.47749 23.31135
+1.54391 23.31433
+1.59761 23.31680
+1.67152 23.32030
+1.72174 23.32272
+1.78683 23.32592
+1.85135 23.32914
+1.94539 23.33393
+1.99220 23.33636
+2.05071 23.33942
+2.11378 23.34276
+2.17209 23.34589
+2.22331 23.34867
+2.27362 23.35143
+2.32883 23.35450
+2.38828 23.35785
+2.44699 23.36122
+2.50335 23.36450
+2.55867 23.36780
+2.61561 23.37126
+2.67485 23.37495
+2.73543 23.37882
+2.79585 23.38280
+2.85675 23.38694
+2.91953 23.39134
+2.98437 23.39604
+3.05018 23.40099
+3.11683 23.40618
+3.18460 23.41165
+3.25451 23.41750
+3.32648 23.42374
+3.39957 23.43030
+3.47365 23.43717
+3.54867 23.44436
+3.62416 23.45181
+3.70056 23.45956
+3.77760 23.46758
+3.85468 23.47580
+3.93184 23.48421
+4.00882 23.49279
+4.08576 23.50154
+4.16266 23.51047
+4.23974 23.51959
+4.31715 23.52894
+4.39513 23.53857
+4.47441 23.54856
+4.55443 23.55888
+4.63544 23.56957
+4.71782 23.58073
+4.80189 23.59242
+4.88799 23.60474
+4.97646 23.61781
+5.06730 23.63169
+5.16080 23.64652
+5.25672 23.66236
+5.35528 23.67937
+5.45634 23.69766
+5.55938 23.71731
+5.66425 23.73845
+5.77131 23.76132
+5.88009 23.78602
+5.99098 23.81280
+6.10325 23.84165
+6.21760 23.87290
+6.33432 23.90677
+6.45406 23.94363
+6.57738 23.98385
+6.70482 24.02785
+6.83717 24.07624
+6.97526 24.12974
+7.11979 24.18923
+7.27205 24.25606
+7.43441 24.33248
+7.60924 24.42131
+7.79952 24.52650
+8.00836 24.65314
+8.24148 24.80958
+8.50710 25.00889
+8.81106 25.26703
+9.15007 25.59714
+9.58649 26.09883
+10.03522 26.72731
+10.30807 27.17870
+10.55277 27.63495
+10.80256 28.15483
+11.06477 28.76174
+11.34948 29.49245
+11.67047 30.40424
+12.05016 31.59520
+12.55258 33.31831
+13.32664 36.04860
+13.52630 36.71383
+13.73415 37.37658
+13.91722 37.93327
+14.08297 38.41524
+14.23800 38.84736
+14.38085 39.22980
+14.51486 39.57508
+14.64229 39.89128
+14.76436 40.18308
+14.88202 40.45398
+14.99625 40.70715
+15.10802 40.94540
+15.21824 41.17117
+15.32790 41.38667
+15.43783 41.59355
+15.54893 41.79333
+15.66206 41.98717
+15.77814 42.17606
+15.89810 42.36076
+16.02295 42.54179
+16.15372 42.71942
+16.29138 42.89353
+16.43689 43.06372
+16.59101 43.22914
+16.75414 43.38846
+16.92662 43.54044
+17.10801 43.68337
+17.29742 43.81578
+17.49106 43.93517
+17.68192 44.03878
+17.85844 44.12362
+18.01107 44.18940
+18.14056 44.24023
+18.25635 44.28212
+18.36640 44.31902
+18.47116 44.35166
+18.56833 44.37986
+18.65731 44.40398
+18.74002 44.42498
+18.81841 44.44364
+18.89328 44.46033
+18.96445 44.47519
+19.03176 44.48832
+19.09514 44.49987
+19.15495 44.51004
+19.21152 44.51899
+19.26506 44.52686
+19.36346 44.53976
+19.40769 44.54489
+19.48677 44.55300
+19.55524 44.55890
+19.61276 44.56302
+19.68112 44.56692
+19.74673 44.56961
+19.78347 44.57064
+19.87685 44.57176
diff --git a/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/valueplot-flowlines_3.dat b/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/valueplot-flowlines_3.dat
new file mode 100644
index 00000000000..21d48fb2828
--- /dev/null
+++ b/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/valueplot-flowlines_3.dat
@@ -0,0 +1,39 @@
+-1.25451 10.36685
+-1.17964 10.36621
+-1.12056 10.36481
+-1.06257 10.36271
+-1.00533 10.35997
+-0.94858 10.35665
+-0.89205 10.35281
+-0.83561 10.34850
+-0.77917 10.34380
+-0.72272 10.33880
+-0.66633 10.33358
+-0.60992 10.32825
+-0.55352 10.32290
+-0.49747 10.31767
+-0.44169 10.31266
+-0.38682 10.30800
+-0.33402 10.30388
+-0.28313 10.30031
+-0.22560 10.29684
+-0.13525 10.29280
+-0.10000 10.29174
+0.00000 10.29044
+0.10000 10.29175
+0.18114 10.29471
+0.24449 10.29811
+0.34379 10.30512
+0.43029 10.31253
+0.49874 10.31897
+0.56221 10.32520
+0.62320 10.33125
+0.68138 10.33692
+0.73700 10.34216
+0.79028 10.34690
+0.84149 10.35114
+0.93860 10.35813
+1.02980 10.36322
+1.11498 10.36658
+1.19044 10.36838
+1.27969 10.36912
diff --git a/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/valueplot-flowlines_4.dat b/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/valueplot-flowlines_4.dat
new file mode 100644
index 00000000000..52a790c19f7
--- /dev/null
+++ b/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/valueplot-flowlines_4.dat
@@ -0,0 +1,34 @@
+-3.24098 15.46859
+-3.15005 15.46793
+-3.13205 15.46764
+-3.03375 15.46514
+-2.94266 15.46145
+-2.86309 15.45344
+-2.78022 15.42299
+-2.71653 15.38079
+-2.53041 15.16335
+-2.31648 14.74227
+-1.93556 13.53895
+-1.64884 12.22611
+-1.36239 10.54200
+-0.93897 7.52613
+-0.30000 3.62234
+-0.10000 3.13037
+-0.00000 3.06780
+0.10000 3.12986
+0.30000 3.60861
+0.71954 5.76144
+1.11229 8.25063
+1.39830 9.82046
+1.61955 10.77871
+1.81907 11.45069
+2.03743 12.00227
+2.41547 12.56801
+2.44747 12.59468
+2.57448 12.66844
+2.65913 12.68968
+2.72919 12.69491
+2.80099 12.69776
+2.87321 12.69961
+2.90861 12.70015
+2.97604 12.70055