I have something like the following:
\begin{tikzpicture}
\draw [draw=gray, ultra thick]plot [smooth cycle] coordinates {
(6+0.3,-0.5) (6+0.3,1.5-0.2)(7+0.3,1.5)(7+0.3,2.5)(6+0.3,2.5+0.2) (6+0.3,5.5)(6+0.1,5.5)(6+0.1,-0.5)
};
\end{tikzpicture}
that creates something like a Gaussian (yeah, its not, and neither is intended to be, but kind of looks like one).
How can I fill this figure with a gradient that is higher in the highest point? I can make it user defined, no need for maths, e.g. Lighter (or darker) part to be on y=2
.
top color=yellow,bottom color=black
to draw options\medium color
?middle color
. More options are in the PGF/TikZ manual about shadings.top,middle,bottom
it will ignore middle