\(\newcommand{\footnotename}{footnote}\) \(\def \LWRfootnote {1}\)
\(\newcommand {\footnote }[2][\LWRfootnote ]{{}^{\mathrm {#1}}}\)
\(\newcommand {\footnotemark }[1][\LWRfootnote ]{{}^{\mathrm
{#1}}}\) \(\let \LWRorighspace \hspace \) \(\renewcommand {\hspace
}{\ifstar \LWRorighspace \LWRorighspace }\) \(\newcommand
{\mathnormal }[1]{{#1}}\) \(\newcommand \ensuremath [1]{#1}\)
\(\newcommand {\LWRframebox }[2][]{\fbox {#2}} \newcommand
{\framebox }[1][]{\LWRframebox } \) \(\newcommand {\setlength
}[2]{}\) \(\newcommand {\addtolength }[2]{}\) \(\newcommand
{\setcounter }[2]{}\) \(\newcommand {\addtocounter }[2]{}\)
\(\newcommand {\arabic }[1]{}\) \(\newcommand {\number }[1]{}\)
\(\newcommand {\noalign }[1]{\text {#1}\notag \\}\) \(\newcommand
{\cline }[1]{}\) \(\newcommand {\directlua }[1]{\text
{(directlua)}}\) \(\newcommand {\luatexdirectlua }[1]{\text
{(directlua)}}\) \(\newcommand {\protect }{}\) \(\def
\LWRabsorbnumber #1 {}\) \(\def \LWRabsorbquotenumber "#1 {}\)
\(\newcommand {\LWRabsorboption }[1][]{}\) \(\newcommand
{\LWRabsorbtwooptions }[1][]{\LWRabsorboption }\) \(\def \mathchar
{\ifnextchar "\LWRabsorbquotenumber \LWRabsorbnumber }\) \(\def
\mathcode #1={\mathchar }\) \(\let \delcode \mathcode \) \(\let
\delimiter \mathchar \) \(\def \oe {\unicode {x0153}}\) \(\def \OE
{\unicode {x0152}}\) \(\def \ae {\unicode {x00E6}}\) \(\def \AE
{\unicode {x00C6}}\) \(\def \aa {\unicode {x00E5}}\) \(\def \AA
{\unicode {x00C5}}\) \(\def \o {\unicode {x00F8}}\) \(\def \O
{\unicode {x00D8}}\) \(\def \l {\unicode {x0142}}\) \(\def \L
{\unicode {x0141}}\) \(\def \ss {\unicode {x00DF}}\) \(\def \SS
{\unicode {x1E9E}}\) \(\def \dag {\unicode {x2020}}\) \(\def \ddag
{\unicode {x2021}}\) \(\def \P {\unicode {x00B6}}\) \(\def
\copyright {\unicode {x00A9}}\) \(\def \pounds {\unicode {x00A3}}\)
\(\let \LWRref \ref \) \(\renewcommand {\ref }{\ifstar \LWRref
\LWRref }\) \( \newcommand {\multicolumn }[3]{#3}\) \(\require
{textcomp}\) \( \newcommand {\meta }[1]{\langle \textit {#1}\rangle
} \) \(\newcommand {\toprule }[1][]{\hline }\) \(\let \midrule
\toprule \) \(\let \bottomrule \toprule \) \(\def
\LWRbooktabscmidruleparen (#1)#2{}\) \(\newcommand
{\LWRbooktabscmidrulenoparen }[1]{}\) \(\newcommand {\cmidrule
}[1][]{\ifnextchar (\LWRbooktabscmidruleparen
\LWRbooktabscmidrulenoparen }\) \(\newcommand {\morecmidrules }{}\)
\(\newcommand {\specialrule }[3]{\hline }\) \(\newcommand
{\addlinespace }[1][]{}\) \(\require {colortbl}\) \(\let
\LWRorigcolumncolor \columncolor \) \(\renewcommand {\columncolor
}[2][named]{\LWRorigcolumncolor [#1]{#2}\LWRabsorbtwooptions }\)
\(\let \LWRorigrowcolor \rowcolor \) \(\renewcommand {\rowcolor
}[2][named]{\LWRorigrowcolor [#1]{#2}\LWRabsorbtwooptions }\) \(\let
\LWRorigcellcolor \cellcolor \) \(\renewcommand {\cellcolor
}[2][named]{\LWRorigcellcolor [#1]{#2}\LWRabsorbtwooptions }\)
\(\newcommand {\intertext }[1]{\text {#1}\notag \\}\) \(\let \Hat
\hat \) \(\let \Check \check \) \(\let \Tilde \tilde \) \(\let
\Acute \acute \) \(\let \Grave \grave \) \(\let \Dot \dot \) \(\let
\Ddot \ddot \) \(\let \Breve \breve \) \(\let \Bar \bar \) \(\let
\Vec \vec \) \(\newcommand {\nicefrac }[3][]{\mathinner
{{}^{#2}\!/\!_{#3}}}\)
\usepgfplotslibrary{decorations.softclip } %
La Te X
and plain
Te X
¶
\usepgfplotslibrary[decorations.softclip ] % ConTe X t
¶
\usetikzlibrary{pgfplots.decorations.softclip } %
La Te X
and plain
Te X
¶
\usetikzlibrary[pgfplots.decorations.softclip ] % ConTe X t
¶
Activates
decoration =softclip .
A “soft clip” is a part of an input path, namely
that part which is inside of the “clip path”. This
is typically known as clipping: you set \clip path; and all following paths are clipped against
path . Soft-clipping is similar, but instead of installing a
low-level clip path, it modifies the input path in a way such
that only parts inside of
path
remain. This makes a difference if decorations are to be
applied. It also makes a difference for
fill between/soft clip .
Note that this library is loaded implicitly by the
fillbetween
library in order to address its
fill between/soft clip
key.
Attention : this library is
considered to be experimental. It will work for paths which are
similar to a plot, i.e. paths which do not intersect themselves
and which have a clear direction. The library might fail, in
general.
An application could be to draw a path twice, but the second
time should only affect portions of the path:
copy
\begin{tikzpicture }
\draw [
postaction ={decorate ,draw,ultra thick},
decoration ={
soft
clip,soft clip path={
(1.5,-1) rectangle
(4,2)
},
},
]
(0,0) --
(1,1) --
(2,1) -- (3,0);
\end{tikzpicture }
The
soft clip
feature is tailored for use with
fill between . Please refer to the documentation of
fill between/soft clip
for more examples and explanation on soft-clipping.
Assigns the
path which is to be used for the
soft clip
decoration. This argument is mandatory in order to apply a
soft clip
decoration.
Please refer to the documentation of
fill between/soft clip
for details; it has the same syntax and a similar motivation.