diff options
Diffstat (limited to 'Master/texmf-dist/tex/generic/pgf/libraries/datavisualization/pgflibrarydatavisualization.polar.code.tex')
-rw-r--r-- | Master/texmf-dist/tex/generic/pgf/libraries/datavisualization/pgflibrarydatavisualization.polar.code.tex | 54 |
1 files changed, 26 insertions, 28 deletions
diff --git a/Master/texmf-dist/tex/generic/pgf/libraries/datavisualization/pgflibrarydatavisualization.polar.code.tex b/Master/texmf-dist/tex/generic/pgf/libraries/datavisualization/pgflibrarydatavisualization.polar.code.tex index 36e51541cee..f56ebe3e7f0 100644 --- a/Master/texmf-dist/tex/generic/pgf/libraries/datavisualization/pgflibrarydatavisualization.polar.code.tex +++ b/Master/texmf-dist/tex/generic/pgf/libraries/datavisualization/pgflibrarydatavisualization.polar.code.tex @@ -7,35 +7,35 @@ % % See the file doc/generic/pgf/licenses/LICENSE for more details. -\ProvidesFileRCS[v\pgfversion] $Header: /cvsroot/pgf/pgf/generic/pgf/libraries/datavisualization/pgflibrarydatavisualization.polar.code.tex,v 1.4 2011/02/22 22:07:24 tantau Exp $ +\ProvidesFileRCS{pgflibrarydatavisualization.polar.code.tex} -\usepgfmodule{datavisualization} +\usepgfmodule{datavisualization}% % This file defines code for doing plots involving polar % coordinates. This includes not only standard polar plots, but also -% pie charts. +% pie charts. \pgfooclass{polar transformer} -{ - % Class plor mapper +{% + % Class polar mapper % % A polar mapper is used to transform attributes given as (2d) polar % coordinates to canvas coordinates. Note that no special ranges % can be specified and that the angle must be given in degrees. You % can, however, use a standard mapper to change these things. - - \attribute angle; + + \attribute angle;% % The attribute from which the angle is read. - - \attribute radius; + + \attribute radius;% % The attribute from which the radius is read. - - \attribute unit vector 0 degrees; + + \attribute unit vector 0 degrees;% % The unit vector 0 degrees - - \attribute unit vector 90 degrees; + + \attribute unit vector 90 degrees;% % The unit vector 90 degrees @@ -52,7 +52,7 @@ \pgfooset{radius}{#2} \pgfooset{unit vector 0 degrees}{#3} \pgfooset{unit vector 90 degrees}{#4} - } + }% % Method \method default connects() { @@ -60,18 +60,18 @@ \pgfkeysvalueof{/pgf/data visualization/obj}.connect(\pgf@dv@me,transform,transform datapoint signal) \pgfkeysvalueof{/pgf/data visualization/obj}.connect(\pgf@dv@me,path,path signal) \pgfkeysvalueof{/pgf/data visualization/obj}.connect(\pgf@dv@me,direction,direction signal) - } + }% % Getters \method get angle attribute(#1) { \pgfooget{angle}{#1} - } + }% \method get radius attribute(#1) { \pgfooget{radius}{#1} - } + }% + - % Slot % % This slot should be connected to the transform datapoint @@ -105,10 +105,10 @@ \fi% \fi% \fi% - } + }% + - % Reaction to the path signal % % Here is what we do: When a pgfdvpathmoveto is done, the radius and @@ -118,9 +118,9 @@ % the lineto is caught and replaced by an arc from the previous % position to the new position. - \attribute prev angle; - \attribute prev radius; - + \attribute prev angle;% + \attribute prev radius;% + \method path(#1) {% \ifpgfdvhandled% \else% @@ -160,7 +160,7 @@ % No matter what, record the current position \pgfooeset{prev angle}{\pgfkeysvalueof{/data point/\pgfoovalueof{angle}}} \pgfooeset{prev radius}{\pgfkeysvalueof{/data point/\pgfoovalueof{radius}}} - } + }% % Method % @@ -191,10 +191,8 @@ \fi% \fi% \fi\fi% - } -} + }% +}% \endinput - - |