diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/pgfplots/figures/pgfplotsclickable.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex/pgfplots/figures/pgfplotsclickable.tex | 125 |
1 files changed, 0 insertions, 125 deletions
diff --git a/Master/texmf-dist/doc/latex/pgfplots/figures/pgfplotsclickable.tex b/Master/texmf-dist/doc/latex/pgfplots/figures/pgfplotsclickable.tex deleted file mode 100644 index fa75e0cb81e..00000000000 --- a/Master/texmf-dist/doc/latex/pgfplots/figures/pgfplotsclickable.tex +++ /dev/null @@ -1,125 +0,0 @@ -\documentclass[a4paper]{article} - -\usepackage{pgfplots} -\pgfplotsset{compat=newest} -\usepgfplotslibrary{clickable} - -\begin{document} -\parindent=0pt -\parskip=30pt - -\begin{tikzpicture} - \begin{axis}[xlabel=$x$,ylabel=$y$, - domain=-2:2, - samples=17, - legend style={at={(0.5,0.98)},anchor=north,legend columns=-1}, - clickable coords, - ] - \addplot {x}; - \addplot {x^2}; - \addplot {x^3}; - \legend{$x$,$x^2$,$x^3$} - \end{axis} -\end{tikzpicture} - -\begin{tikzpicture} - \begin{semilogyaxis}[ - xlabel=$x$,ylabel=$f(x)$, - samples=10, - domain=0:6, - legend style={at={(0.5,0.98)},anchor=north,legend columns=-1}, - clickable coords, - ] - \addplot {exp(x)}; - \addplot {10^x}; - \legend{$\exp(x)$,$10^x$} - \end{semilogyaxis} -\end{tikzpicture} - -\begin{tikzpicture} - \begin{axis}[xlabel=$x$,ylabel=$y$, - xmin=0,xmax=1e3, - ymin=0,ymax=1e3, - ] - \end{axis} -\end{tikzpicture} - - -\begin{tikzpicture} - \begin{loglogaxis}[clickable coords={Level \thisrow{level} (q=\thisrow{q})}] - \addplot table[x=dof,y=error] { -level dof error q -1 4 2.50000000e-01 48 -2 16 6.25000000e-02 25 -3 64 1.56250000e-02 41 -4 256 3.90625000e-03 8 -5 1024 9.76562500e-04 22 -6 4096 2.44140625e-04 46 -7 16384 6.10351562e-05 40 -8 65536 1.52587891e-05 3 -9 262144 3.81469727e-06 1 -10 1048576 9.53674316e-07 9 - }; - - \end{loglogaxis} -\end{tikzpicture} - -\begin{tikzpicture} - \begin{axis}[ - clickable coords={(xy): \thisrow{label}}, - scatter/classes={ - a={mark=square*,blue},% - b={mark=triangle*,red},% - c={mark=o,draw=black}}, - ] - - \addplot[scatter,only marks, - scatter src=explicit symbolic] - table[meta=label] { -x y label -0.1 0.15 a -0.45 0.27 c -0.02 0.17 a -0.06 0.1 a -0.9 0.5 b -0.5 0.3 c -0.85 0.52 b -0.12 0.05 a -0.73 0.45 b -0.53 0.25 c -0.76 0.5 b -0.55 0.32 c - }; - - \end{axis} -\end{tikzpicture} - - - -\begin{tikzpicture} - \begin{loglogaxis}[clickable coords code={% - \pgfmathprintnumberto[verbatim,precision=1]{\thisrow{error}}\pgfmathresult% - \edef\pgfplotsretval{log error \pgfmathresult}% - \pgfmathprintnumberto[verbatim,frac]{\thisrow{frac}}\pgfmathresult% - \edef\pgfplotsretval{\pgfplotsretval, R=\pgfmathresult}% - }]% - \addplot table[x=dof,y=error] { -level dof error frac -1 4 2.50000000e-01 0.5 -2 16 6.25000000e-02 0.75 -3 64 1.56250000e-02 0.1 -4 256 3.90625000e-03 0.2 -5 1024 9.76562500e-04 0.5 -6 4096 2.44140625e-04 0.8 -7 16384 6.10351562e-05 0.125 -8 65536 1.52587891e-05 0.725 -9 262144 3.81469727e-06 0.625 -10 1048576 9.53674316e-07 1 - }; - - \end{loglogaxis} -\end{tikzpicture} - - -\end{document} - |