I would like to fill an area between two Bezier curves.
\documentclass{minimal}
\usepackage{tikz}
\usetikzlibrary{arrows, calc, shapes}
\usepackage{pgfplots}
\pgfplotsset{compat=1.10}
\usepgfplotslibrary{fillbetween}
\begin{document}
\begin{tikzpicture}
\draw[name path=A] (1cm,4cm) .. controls (1.3cm,1.2cm) and (1.5cm,1cm) .. (10cm,0.4cm);
\draw[name path=B] (1cm,-4cm) .. controls (1.3cm,-1.2cm) and (1.5cm,-1cm) .. (10cm,-0.4cm);
\end{tikzpicture}
I've already tried it with \filldraw
, but unfortunately this keeps filling the wrong side.
I've also considered the possibility to use \addplot[brown!50] fill between[of=A and B];
, but I struggeled to add the Bezier Curves with the \addplot
command.
Also I'd like to have a opacity flow from left to right.