diff --git a/plt/examplePlot.tex b/plt/examplePlot.tex index 5629a7661c7fc3855f3873a69adffa23a1ec63ae..9a8adbe6c788e9c3e5c5864eee7ddd9f5ed55a54 100644 --- a/plt/examplePlot.tex +++ b/plt/examplePlot.tex @@ -11,7 +11,9 @@ \begin{tikzpicture} \begin{axis}[MyPlots] - \addplot[FM1,domain=-1:1]{x^2}; + \addplot[FM1,domain=-1:1, name path=A]{x^2}; + \addplot[FM2,mark=none,domain=-1:1, name path=B]{0.5*x^2-1}; + \addplot[pattern color=gray!40, pattern=dots] fill between[of=A and B]; \end{axis} \end{tikzpicture} diff --git a/src/config.tex b/src/config.tex index d90f94c9edfa8427acbf28031efc158b58f2a298..e9dcc6619224a3e067038f0dfe7be8c0dbf08da1 100644 --- a/src/config.tex +++ b/src/config.tex @@ -54,6 +54,7 @@ }{}% \@ifpackageloaded{pgfplots}{ \usepgfplotslibrary{fillbetween} % mark areas under or between graphs + \usetikzlibrary{patterns} % for using pattern in plots \if@german \pgfplotsset{/pgf/number format/use comma} \fi