summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.axispath.tex
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/test/pgfplotstest/pgfplotstest.axispath.tex
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/test/pgfplotstest/pgfplotstest.axispath.tex')
-rw-r--r--Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.axispath.tex41
1 files changed, 41 insertions, 0 deletions
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}