TikZ allows you to have shapes with gradients like this
\fill [
left color=red,
right color=blue,
] (0,0) circle
is the same possible for a plot line?
Something like
\addplot[very thick, smooth, left color=red, right color=blue]
does not work.

(1) http://meta.tex.stackexchange.com/questions/228/ive-just-been-asked-to-write-a-minimal-example-what-is-that
– Peter Ebelsberger May 07 '15 at 17:43