diff options
Diffstat (limited to 'Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.file.tex')
-rw-r--r-- | Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.file.tex | 121 |
1 files changed, 0 insertions, 121 deletions
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 deleted file mode 100644 index 423b2c4ee0d..00000000000 --- a/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.file.tex +++ /dev/null @@ -1,121 +0,0 @@ -\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} - -} |