diff options
Diffstat (limited to 'Master/texmf-dist/tex/generic/pgfplots/pgfcontrib/pgflibraryfillbetween.code.tex')
-rw-r--r-- | Master/texmf-dist/tex/generic/pgfplots/pgfcontrib/pgflibraryfillbetween.code.tex | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/Master/texmf-dist/tex/generic/pgfplots/pgfcontrib/pgflibraryfillbetween.code.tex b/Master/texmf-dist/tex/generic/pgfplots/pgfcontrib/pgflibraryfillbetween.code.tex index 2b1eebdcb58..3512d7e3086 100644 --- a/Master/texmf-dist/tex/generic/pgfplots/pgfcontrib/pgflibraryfillbetween.code.tex +++ b/Master/texmf-dist/tex/generic/pgfplots/pgfcontrib/pgflibraryfillbetween.code.tex @@ -10,7 +10,7 @@ \usepgflibrary{intersections} % FIXME : ARCHITECTURE VIOLATION: REQUIRES -% \usetikzlibrary{decorations.softclip} +% \usetikzlibrary{decorations.softclip} % %\usepgfmodule{decorations} @@ -31,7 +31,7 @@ /pgf/fill between/inner moveto/connect, % % split=true allows to generate individual result paths for every - % region induced by the intersection points. Example: + % region induced by the intersection points. Example: % "color positive region in red and negative region in green". % The case split=false results in just one output path % (simpler+faster, but of course less powerful). @@ -225,13 +225,13 @@ % 0. normalize path sequences. % ATTENTION : there are implicit assumptions on the INTERNAL ORDER of the two paths! % This implementation needs to loop over them synchronously, i.e. it processes - % the 0.th segment of a and the 0th of b, - % the 1.th segment of a and the 1th of b, + % the 0.th segment of a and the 0th of b, + % the 1.th segment of a and the 1th of b, % and so on. Here, "i th segment" implies a sort order in ascending x direction. % This is, however, a weakness of \pgfintersectionofpaths - it does not really support this kind of sorting. - % + % % I work around this by restricting the implementation to the "common use-cases", i.e. to two plots of functions which do not intersect themselves (i.e. to "functions" in the original sense). This will probably (almost surely) fail for parametric functions or circles. - % + % \if0\pgfpathfillbetween@reverse@mode % reverse=false % @@ -413,7 +413,7 @@ % Takes a softpath on input, replaces its first moveto by a lineto, % and returns it as softpath. % #1: a macro containing a softpath (i.e. the result of \pgfgetpath) -% +% % On output, \pgfretval contains a modified path. \def\pgfpathreplacefirstmoveto#1{% \ifx#1\pgfutil@empty @@ -440,7 +440,7 @@ }% % example: \pgfsyssoftpath@movetotoken{#2}{#3}\pgfsyssoftpath@linetotoken{#5}{#6}#7\pgf@stop -% example: +% example: % \pgfsyssoftpath@movetotoken{#2}{#3} % \pgfsyssoftpath@curvetosupportatoken{<x>}{<y>} % \pgfsyssoftpath@curvetosupportbtoken{<x>}{<y>} @@ -469,7 +469,7 @@ \edef\pgfretval{% \ifdim #1<#3\space +% - \else + \else \ifdim #1=#3\space \ifdim #2<#4\space +% @@ -717,10 +717,10 @@ % \pgfplotsassertequalstok{\the\pgf@x, \the\pgf@y}{128.05057pt, 14.2278pt}{solution 3} % \pgfpointintersectionsolution{4}% % \pgfplotsassertequalstok{\the\pgf@x, \the\pgf@y}{156.50636pt, 14.2278pt}{solution 4} -% -% +% +% % \pgfcomputeintersectionsegments{1}% -% +% % \message{OUTPUT: \meaning\pgfretval^^J}% % \expandafter\def\csname expected@a@0\endcsname{% % \pgfsyssoftpath@movetotoken {56.90549pt}{0.0pt}% @@ -745,7 +745,7 @@ % \pgfsyssoftpath@movetotoken{156.50636pt}{14.2278pt}% % \pgfsyssoftpath@linetotoken {170.71646pt}{0.0pt}% % } -% % +% % \def\pgfcomputeintersectionsegments#1{% \pgfcomputeintersectionsegments@set@src{#1}% \ifnum\pgfintersectionsolutions=0 % @@ -871,7 +871,7 @@ % Point lerp(float t, Point A, Point B) { % return A*(1-t) + B*t; // + and * overloaded for Points % } -% +% % void split(t, Point P[4], Point L[4], Point R[4]) { % Point P01 = lerp(t, P[0], P[1]); % Point P12 = lerp(t, P[1], P[2]); @@ -883,11 +883,11 @@ % R[0] = Q; % R[1] = P123; R[2] = P23; R[3] = P[3]; % } -%-------------------------------------------------- +%-------------------------------------------------- % INPUT: % #1: a value in the range [0,1] which determines the split point % #2,#3,#4,#5: the points of the curve, each of the form {<x>}{<y>} -% +% % OUTPUT: % \pgfretval@L{{<A>}{<B>}{<C>}{<D>}} % \pgfretval@R{{<A>}{<B>}{<C>}{<D>}} @@ -929,7 +929,7 @@ % % This variants takes a part of a softpath as input: % -% #1: a curveto- a macro containing a softpath of the form +% #1: a curveto- a macro containing a softpath of the form % <x><y>\pgfsyssoftpath@curvetosupportatoken<x><y>\pgfsyssoftpath@curvetosupportbtoken<x><y>\pgfsyssoftpath@curvetotoken<x><y> % #2: t in [0,1] % |