diff options
Diffstat (limited to 'Master/texmf-dist/tex/generic/pgf/libraries/datavisualization')
3 files changed, 66 insertions, 68 deletions
diff --git a/Master/texmf-dist/tex/generic/pgf/libraries/datavisualization/pgflibrarydatavisualization.barcharts.code.tex b/Master/texmf-dist/tex/generic/pgf/libraries/datavisualization/pgflibrarydatavisualization.barcharts.code.tex index 7eb1b719329..da124ee8401 100644 --- a/Master/texmf-dist/tex/generic/pgf/libraries/datavisualization/pgflibrarydatavisualization.barcharts.code.tex +++ b/Master/texmf-dist/tex/generic/pgf/libraries/datavisualization/pgflibrarydatavisualization.barcharts.code.tex @@ -7,9 +7,9 @@ % % See the file doc/generic/pgf/licenses/LICENSE for more details. -\ProvidesFileRCS[v\pgfversion] $Header: /cvsroot/pgf/pgf/generic/pgf/libraries/datavisualization/pgflibrarydatavisualization.barcharts.code.tex,v 1.3 2008/11/12 23:39:37 tantau Exp $ +\ProvidesFileRCS{pgflibrarydatavisualization.barcharts.code.tex} -\usepgfmodule{datavisualization} +\usepgfmodule{datavisualization}% % @@ -18,22 +18,22 @@ \pgfooclass{candle stick visualizer} -{ - \attribute attribute; - \attribute offset; - \attribute use path rise=\pgfsetfillcolor{white}\pgfusepath{fill,stroke}; - \attribute use path fall=\pgfsetfillcolor{black}\pgfusepath{fill,stroke}; - \attribute use path wick=\pgfusepath{stroke}; - +{% + \attribute attribute;% + \attribute offset;% + \attribute use path rise=\pgfsetfillcolor{white}\pgfusepath{fill,stroke};% + \attribute use path fall=\pgfsetfillcolor{black}\pgfusepath{fill,stroke};% + \attribute use path wick=\pgfusepath{stroke};% + \method candle stick visualizer(#1) { \pgfooeset{attribute}{#1} \pgfoothis.set stick width(4pt) - } + }% \method default connects() { \pgfoothis.get handle(\pgf@dv@me) \pgfkeysvalueof{/pgf/data visualization/obj}.connect(\pgf@dv@me,visualize,visualize datapoint signal) - } + }% \method set stick width(#1) { \pgfmathparse{#1} @@ -53,15 +53,15 @@ \pgf@y=\pgf@dv@lib@w\pgf@xa% \edef\pgf@dv@lib@temp{\noexpand\pgfqpoint{\the\pgf@x}{\the\pgf@y}}% \pgfoolet{offset}\pgf@dv@lib@temp - } + }% \method set use path rise(#1) { \pgfooset{use path rise}{#1} - } + }% \method set use path fall(#1) { \pgfooset{use path fall}{#1} - } + }% \method visualize() { { @@ -122,14 +122,14 @@ \else \pgfoovalueof{use path fall} \fi - \end{pgfscope} + \end{pgfscope}% \fi } - } + }% \newif\ifpgf@dv@lib@cs@skip \newif\ifpgf@dv@lib@rise -} +}% \endinput diff --git a/Master/texmf-dist/tex/generic/pgf/libraries/datavisualization/pgflibrarydatavisualization.formats.functions.code.tex b/Master/texmf-dist/tex/generic/pgf/libraries/datavisualization/pgflibrarydatavisualization.formats.functions.code.tex index ae62fd31839..540901936fe 100644 --- a/Master/texmf-dist/tex/generic/pgf/libraries/datavisualization/pgflibrarydatavisualization.formats.functions.code.tex +++ b/Master/texmf-dist/tex/generic/pgf/libraries/datavisualization/pgflibrarydatavisualization.formats.functions.code.tex @@ -7,9 +7,9 @@ % % See the file doc/generic/pgf/licenses/LICENSE for more details. -\ProvidesFileRCS[v\pgfversion] $Header: /cvsroot/pgf/pgf/generic/pgf/libraries/datavisualization/pgflibrarydatavisualization.formats.functions.code.tex,v 1.4 2011/03/14 23:17:52 tantau Exp $ +\ProvidesFileRCS{pgflibrarydatavisualization.formats.functions.code.tex} -\usepgfmodule{datavisualization} +\usepgfmodule{datavisualization}% @@ -36,27 +36,27 @@ % % Additionally, the variables and functions stored in the keys % /pgf/data/vars and /pgf/data/funcs will also be used, the format for -% them is the same as above. +% them is the same as above. % % The <name> is always the name of a (data point) attribute. Inside % the <body> it can be accessed using the \value macro, which is % defined locally, here. % -% Newlines are not importants, everything is gathered into a single +% Newlines are not important, everything is gathered into a single % line, the semicolons are used to detect the beginnings and ends of % declarations. % % With everything setup in this way, for each variable, the variable -% ranges throught the values between start and end, either with the +% ranges through the values between start and end, either with the % given step or the given number of samples. If neither is given, the % current value of /pgf/data visualization/samples is used. If there % are multiple variables, they all range over their respective -% intervals independently. Thus, "var x = [0,1]; var y = [0:1];", +% intervals independently. Thus, "var x = [0,1]; var y = [0:1];", % assuming samples=25, gives you 625 data points. % % As the variables range over their respective values, the functions % are evaluated using the function stored in /pgf/data/evaluator. By -% default this is set to \pgfmathparse, but +% default this is set to \pgfmathparse, but % you can use a different parser, if you like. % % Example: @@ -104,15 +104,15 @@ \expandafter\pgf@lib@dv@func@parse \pgf@lib@dv@collector\pgf@stop% \let\value\pgf@lib@dv@getval \pgf@lib@dv@parsed\pgfdatapoint\pgfutil@gobble\pgf@stop% -} +}% \pgfkeys{ /pgf/data/vars/.initial=, /pgf/data/funcs/.initial=, /pgf/data/evaluator/.initial=\pgfmathparse, - /pgf/data/samples/.initial=25} + /pgf/data/samples/.initial=25}% -\def\pgf@lib@dv@getval#1{\pgfkeysvalueof{/data point/#1}} +\def\pgf@lib@dv@getval#1{\pgfkeysvalueof{/data point/#1}}% \def\pgf@lib@dv@func@parse{% \pgfutil@ifnextchar\pgf@stop{% done @@ -125,17 +125,17 @@ \pgf@lib@dv@func% }% }% -} +}% \def\pgf@lib@dv@func func #1 =#2;{% \expandafter\def\expandafter\pgf@lib@dv@parsed\expandafter{\pgf@lib@dv@parsed\pgf@lib@dv@eval@func{#1}{#2}} \pgf@lib@dv@func@parse% -} -\def\pgf@lib@dv@var var #1 :{\pgfutil@ifnextchar\bgroup{\pgf@lib@dv@var@group{#1}}{\pgf@lib@dv@var@int{#1}}} +}% +\def\pgf@lib@dv@var var #1 :{\pgfutil@ifnextchar\bgroup{\pgf@lib@dv@var@group{#1}}{\pgf@lib@dv@var@int{#1}}}% \def\pgf@lib@dv@var@group#1#2;{% \expandafter\def\expandafter\pgf@lib@dv@parsed\expandafter{\pgf@lib@dv@parsed\pgf@lib@dv@group@var{#1}{#2}}% \pgf@lib@dv@func@parse% -} +}% \def\pgf@lib@dv@var@int#1#2[#3:#4]{% \pgfutil@ifnextchar s{% \pgf@lib@dv@samplesorsteps{#1}{#3}{#4}% @@ -144,22 +144,22 @@ \pgf@lib@dv@parsed\pgf@lib@dv@samples@var{#1}{#3}{#4}{\pgfkeysvalueof{/pgf/data/samples}}}% \expandafter\pgf@lib@dv@func@parse\pgfutil@gobble% } -} +}% \def\pgf@lib@dv@samplesorsteps#1#2#3s{% \pgfutil@ifnextchar t{% step \pgf@lib@dv@step{#1}{#2}{#3}% }{% sample \pgf@lib@dv@samples{#1}{#2}{#3}% }% -} +}% \def\pgf@lib@dv@step#1#2#3tep#4;{% \expandafter\def\expandafter\pgf@lib@dv@parsed\expandafter{\pgf@lib@dv@parsed\pgf@lib@dv@step@var{#1}{#2}{#3}{#4}}% \pgf@lib@dv@func@parse% -} +}% \def\pgf@lib@dv@samples#1#2#3amples#4;{% \expandafter\def\expandafter\pgf@lib@dv@parsed\expandafter{\pgf@lib@dv@parsed\pgf@lib@dv@samples@var{#1}{#2}{#3}{#4}}% \pgf@lib@dv@func@parse% -} +}% % % Executer... @@ -172,7 +172,7 @@ \pgfmathparse{\pgfmathresult/(#4-1)}% \let\pgf@lib@dv@temp=\pgfmathresult% \pgf@lib@dv@step@var{#1}{#2}{#3}{\pgf@lib@dv@temp}% -} +}% \def\pgf@lib@dv@step@var#1#2#3#4#5\pgf@stop{% {% @@ -191,19 +191,19 @@ \pgfkeyslet{/data point/#1}{\pgfmathresult}% \repeatpgfmathloop%% }% -} +}% \def\pgf@lib@dv@group@var#1#2#3\pgf@stop{% \foreach \pgf@lib@dv@iterator in {#2} {% \pgfkeyslet{/data point/#1}{\pgf@lib@dv@iterator}% #3\pgf@stop% }% -} +}% \def\pgf@lib@dv@eval@func#1#2{% \pgfkeysvalueof{/pgf/data/evaluator}{#2}% - \pgfkeyslet{/data point/#1}{\pgfmathresult}% -} + \pgfkeyslet{/data point/#1}{\pgfmathresult}% +}% \endinput 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 - - |