diff options
Diffstat (limited to 'Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-dv-formats.tex')
-rw-r--r-- | Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-dv-formats.tex | 25 |
1 files changed, 17 insertions, 8 deletions
diff --git a/Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-dv-formats.tex b/Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-dv-formats.tex index 61504874373..00b3ee1e96d 100644 --- a/Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-dv-formats.tex +++ b/Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-dv-formats.tex @@ -120,7 +120,7 @@ angle, radius that you must surround a comma by curly braces if you which to (re)set the separator character to a space. % -\begin{codeexample}[] +\begin{codeexample}[preamble={\usetikzlibrary{datavisualization}}] \begin{tikzpicture} \datavisualization [school book axes, visualize as line] data [separator=\space] { @@ -144,7 +144,7 @@ angle, radius is used as the headline and the first line of the data is treated as a normal line rather than as a headline. % -\begin{codeexample}[] +\begin{codeexample}[preamble={\usetikzlibrary{datavisualization}}] \begin{tikzpicture} \datavisualization [school book axes, visualize as line] data [headline={x, y}] { @@ -164,7 +164,7 @@ angle, radius attribute |/data point/x| to be set to |5| and |/data point/lo| to be set to |500|. % -\begin{codeexample}[] +\begin{codeexample}[preamble={\usetikzlibrary{datavisualization}}] \begin{tikzpicture} \datavisualization [school book axes, visualize as line] data [format=named] { @@ -186,7 +186,10 @@ angle, radius attribute. In this case, a data point is created for each possible combination of values in the different lists: % -\begin{codeexample}[width=7cm] +\begin{codeexample}[ + width=7cm, + preamble={\usetikzlibrary{datavisualization}}, +] \tikz \datavisualization [scientific axes=clean, visualize as scatter/.list={a,b,c}, @@ -207,7 +210,7 @@ data [format=named] { may not be spread over several lines. However, not each line needs to produce a data point. % -\begin{codeexample}[] +\begin{codeexample}[preamble={\usetikzlibrary{datavisualization}}] \begin{tikzpicture} \datavisualization [school book axes, visualize as line] data [format=TeX code] { @@ -307,7 +310,7 @@ data [format=named] { specification. In this case, all of these functions will be evaluated for each setting of input variables. % -\begin{codeexample}[] +\begin{codeexample}[preamble={\usetikzlibrary{datavisualization.formats.functions}}] \tikz \datavisualization [school book axes, visualize as smooth line] data [format=function] { @@ -317,7 +320,10 @@ data [format=named] { }; \end{codeexample} % -\begin{codeexample}[width=6cm] +\begin{codeexample}[ + width=6cm, + preamble={\usetikzlibrary{datavisualization.formats.functions}}, +] \tikz \datavisualization [ school book axes, all axes={unit length=5mm, ticks={step=2}}, @@ -330,7 +336,10 @@ data [format=function] { }; \end{codeexample} % -\begin{codeexample}[width=7cm] +\begin{codeexample}[ + width=7cm, + preamble={\usetikzlibrary{datavisualization.formats.functions}}, +] \tikz \datavisualization [ scientific axes=clean, y axis={ticks={style={ |