diff options
author | Karl Berry <karl@freefriends.org> | 2008-06-15 17:56:37 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2008-06-15 17:56:37 +0000 |
commit | 3f126e90ac9efa15e72c8b415a2f25d3b19c509a (patch) | |
tree | 3fb6f3eebbf51978c31e8d6ff1180432e50b9935 /Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.axislines.tex | |
parent | 9667a29e9fef0ef89c9d7bd311e2d2a6aaccf50c (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.axislines.tex')
-rw-r--r-- | Master/texmf-dist/doc/generic/pgfplots/test/pgfplotstest/pgfplotstest.axislines.tex | 259 |
1 files changed, 259 insertions, 0 deletions
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} |