diff options
Diffstat (limited to 'Master/texmf-dist/tex/generic/pgfplots/libs/tikzlibrarypgfplots.fillbetween.code.tex')
-rw-r--r-- | Master/texmf-dist/tex/generic/pgfplots/libs/tikzlibrarypgfplots.fillbetween.code.tex | 36 |
1 files changed, 28 insertions, 8 deletions
diff --git a/Master/texmf-dist/tex/generic/pgfplots/libs/tikzlibrarypgfplots.fillbetween.code.tex b/Master/texmf-dist/tex/generic/pgfplots/libs/tikzlibrarypgfplots.fillbetween.code.tex index 36c5b4ddf61..3c3243abab1 100644 --- a/Master/texmf-dist/tex/generic/pgfplots/libs/tikzlibrarypgfplots.fillbetween.code.tex +++ b/Master/texmf-dist/tex/generic/pgfplots/libs/tikzlibrarypgfplots.fillbetween.code.tex @@ -53,13 +53,21 @@ \pgfkeys{ /pgfplots/every fill between plot/.style={/pgfplots/area legend,/tikz/fill}, /tikz/soft clip assign/domain/.code args={#1:#2}{% - \edef\pgfplots@loc@TMPa{(axis cs:#1,\pgfkeysvalueof{/pgfplots/ymin}) rectangle (axis cs:#2,\pgfkeysvalueof{/pgfplots/ymax})}% - \pgfkeysalso{/tikz/soft clip assign/path/.expand once=\pgfplots@loc@TMPa}% + \pgfplotsifisvisualizationphase{% + \edef\pgfplots@loc@TMPa{% + (axis cs:#1,\pgfkeysvalueof{/pgfplots/ymin}) + rectangle (axis cs:#2,\pgfkeysvalueof{/pgfplots/ymax})}% + \pgfkeysalso{/tikz/soft clip assign/path/.expand once=\pgfplots@loc@TMPa}% + }{}% },% /tikz/soft clip assign/y domain y/.style={/tikz/soft clip assign/domain y={#1}}, /tikz/soft clip assign/domain y/.code args={#1:#2}{% - \edef\pgfplots@loc@TMPa{(axis cs:\pgfkeysvalueof{/pgfplots/xmin},#1) rectangle (axis cs:\pgfkeysvalueof{/pgfplots/xmax},#2)}% - \pgfkeysalso{/tikz/soft clip assign/path/.expand once=\pgfplots@loc@TMPa}% + \pgfplotsifisvisualizationphase{% + \edef\pgfplots@loc@TMPa{% + (axis cs:\pgfkeysvalueof{/pgfplots/xmin},#1) + rectangle (axis cs:\pgfkeysvalueof{/pgfplots/xmax},#2)}% + \pgfkeysalso{/tikz/soft clip assign/path/.expand once=\pgfplots@loc@TMPa}% + }{}% },% % /pgfplots/execute at begin axis@@/.add={}{% @@ -68,6 +76,7 @@ }, } +% #1: the value of /tikz/fill between/on layer \def\pgfplotsfillbetween@ensure@clipping@on@layer{% \ifpgfplots@clip \pgfkeysgetvalue{/tikz/fill between/on layer}\pgfplots@loc@TMPa @@ -80,7 +89,7 @@ \ifpgfutil@in@ % ah - already prepared. Good, nothing left to do. \else - \pgfplots@log3{fill between: found 'clip=true'. installing clip path for layer '\pgfplots@loc@TMPa'...}% + \pgfplots@log3{fill between: found 'clip=true'. Preparing pgfplotsextra instruction with clip path for layer '\pgfplots@loc@TMPa'...}% \xdef\pgfplotsfillbetween@list@of@layers@with@clippath{\pgfplots@loc@TMPa,\pgfplotsfillbetween@list@of@layers@with@clippath}% % \edef\pgfplots@loc@TMPb{% @@ -120,6 +129,7 @@ \tikzfillbetween[#2]{% /pgfplots/.search also=/tikz,% /pgfplots/.cd,% + /tikz/fill between/every last segment/.append style={/tikz/fill between/path after segment={#3}},% #1% }% }{% @@ -127,6 +137,16 @@ }% } +% ONLY TO BE USED AS LATER OPTION! +\pgfkeysdef{/pgfplots/fill between/@ensure layers}{% + \ifpgfplots@layered@graphics + \else + \pgfplots@log3{fill between: activating layered graphics}% + \pgfplotsset{set layers}% + \pgfplots@set@options@of@layered@graphics + \fi +}% + % SIDE-EFFECT: modifies \b@pgfplotsfillbetween@list@has@set@layers and % \pgfplotsfillbetween@list@of@layers@with@clippath \def\pgfplotslibraryfillbetweenpreparecurrentlayer{% @@ -134,11 +154,11 @@ \ifx\pgfplots@loc@TMPa\pgfutil@empty \else \if0\b@pgfplotsfillbetween@list@has@set@layers - \pgfplots@log3{fill between: activating layered graphics}% - \pgfplotssetlateoptions{set layers}% + % + \pgfplotssetlateoptions{fill between/@ensure layers}% \gdef\b@pgfplotsfillbetween@list@has@set@layers{1}% \fi - \pgfplotsfillbetween@ensure@clipping@on@layer + \pgfplotsfillbetween@ensure@clipping@on@layer% \fi } |