diff options
Diffstat (limited to 'Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-dv-polar.tex')
-rw-r--r-- | Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-dv-polar.tex | 55 |
1 files changed, 44 insertions, 11 deletions
diff --git a/Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-dv-polar.tex b/Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-dv-polar.tex index 5d9f3518052..31167b720a1 100644 --- a/Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-dv-polar.tex +++ b/Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-dv-polar.tex @@ -23,7 +23,13 @@ data point as follows: One attribute is used to compute a an angle (a direction) while a second attribute is used as a radius (a distance). The angle can be measured in degrees, radians, or can be scaled arbitrarily. % -\begin{codeexample}[width=8.5cm] +\begin{codeexample}[ + width=8.5cm, + preamble={\usetikzlibrary{ + datavisualization.formats.functions, + datavisualization.polar, +}}, +] \tikz \datavisualization [ scientific polar axes={0 to pi, clean}, all axes=grid, @@ -56,7 +62,10 @@ configurations possible for, say, Cartesian axes also apply to the ``angle axis'' and the ``radius axis'' of a polar axis system. For instance, you can could make both axes logarithmic or style their ticks: % -\begin{codeexample}[] +\begin{codeexample}[preamble={\usetikzlibrary{ + datavisualization.formats.functions, + datavisualization.polar, +}}] \tikz[baseline] \datavisualization [ scientific axes={clean}, x axis={attribute=angle, ticks={minor steps between steps=4}}, @@ -117,7 +126,13 @@ could make both axes logarithmic or style their ticks: attribute value zero is always placed at the center -- and for a logarithmic plot the value |0| cannot be mapped. % -\begin{codeexample}[width=8.8cm] +\begin{codeexample}[ + width=8.8cm, + preamble={\usetikzlibrary{ + datavisualization.formats.functions, + datavisualization.polar, +}}, +] \tikz \datavisualization [ scientific polar axes, radius axis={ @@ -151,7 +166,13 @@ data [format=function] { This key, which is the default, causes ticks to be drawn ``outside'' the outer ``ring'' of the polar axes: % -\begin{codeexample}[width=8.8cm] +\begin{codeexample}[ + width=8.8cm, + preamble={\usetikzlibrary{ + datavisualization.formats.functions, + datavisualization.polar, +}}, +] \tikz \datavisualization [ scientific polar axes={outer ticks, 0 to 180}, visualize as smooth line] @@ -167,7 +188,13 @@ data [format=function] { This key causes the ticks to be ``turned to the inside''. I do not recommend using this key. % -\begin{codeexample}[width=8.8cm] +\begin{codeexample}[ + width=8.8cm, + preamble={\usetikzlibrary{ + datavisualization.formats.functions, + datavisualization.polar, +}}, +] \tikz \datavisualization [ scientific polar axes={inner ticks, 0 to 180}, visualize as smooth line] @@ -184,7 +211,13 @@ data [format=function] { ticks are shown. Usually, this is the best choice for the tick placement since it avoids a collision of data and explanations. % -\begin{codeexample}[width=8.8cm] +\begin{codeexample}[ + width=8.8cm, + preamble={\usetikzlibrary{ + datavisualization.formats.functions, + datavisualization.polar, +}}, +] \tikz \datavisualization [ scientific polar axes={clean, 0 to 180}, visualize as smooth line] @@ -241,7 +274,7 @@ In order to save some space in this manual, in the following the different possible keys are only given in a table together with a small example for each key. The examples were created using the following code: % -\begin{codeexample}[] +\begin{codeexample}[preamble={\usetikzlibrary{datavisualization.polar}}] \tikz \datavisualization [ scientific polar axes={ clean, @@ -343,7 +376,7 @@ automatically). a position on the page that is at a distance of $r$ from the origin and at an angle of~$a$. % -\begin{codeexample}[] +\begin{codeexample}[preamble={\usetikzlibrary{datavisualization.polar}}] \tikz \datavisualization [new polar axes={angle axis}{radius axis}, radius axis={length=2cm}, @@ -373,7 +406,7 @@ automatically). Both the \meta{unit vector 0 degrees} and the \meta{unit vector 90 degrees} are \tikzname\ coordinates: % -\begin{codeexample}[] +\begin{codeexample}[preamble={\usetikzlibrary{datavisualization.polar}}] \tikz \datavisualization [new polar axes={angle axis}{radius axis}, radius axis={unit length=1cm}, @@ -394,7 +427,7 @@ keys: up the scaling so that a value of |360| on this axis corresponds to a complete circle. % -\begin{codeexample}[] +\begin{codeexample}[preamble={\usetikzlibrary{datavisualization.polar}}] \tikz \datavisualization [new polar axes={angle axis}{radius axis}, radius axis={unit length=1cm}, @@ -411,7 +444,7 @@ keys: In contrast to |degrees|, this option sets up things so that a value of |2*pi| on this axis corresponds to a complete circle. % -\begin{codeexample}[] +\begin{codeexample}[preamble={\usetikzlibrary{datavisualization.polar}}] \tikz \datavisualization [new polar axes={angle axis}{radius axis}, radius axis={unit length=1cm}, |