Is there any way to fill the area under a spline? In the example below, removing mesh from the addplot options closes the cycle as expected with by joining the first and last coordinate by a straight line. How can the fill instead be to the axis?
\documentclass{standalone}
\usepackage{pgfplots}
\usepgfplotslibrary{patchplots}
\begin{document}
\begin{tikzpicture}
\begin{axis}
\addplot[patch,patch type=cubic spline]coordinates{(0,0)(3,1)(1,.5)(2,.5)};
\end{axis}
\end{tikzpicture}
\end{document}