Something like this may be:
\documentclass[tikz]{standalone}
\usepackage{pgfplots}
\begin{document}
\begin{tikzpicture}
\begin{axis}
\addplot [mesh, variable=\x, samples=100,domain=-10:10] ({\x},{sin(deg(\x))+0.6*\x});
\end{axis}
\end{tikzpicture}
\end{document}
I just changed the \draw
environment with \addplot
within an axis
environment. This will give you:

Update Fix with colormaps
. By utilising the colormaps
tikz library you can set the desired color map and obtain what you desire. As in:
\documentclass[tikz]{standalone}
\usepackage{pgfplots}
\usepgfplotslibrary{colormaps}
% Note that this is the colormap definition. You can play with this however you want. Fun fact: this color map also includes 8bit color code definition. Which can be defined using rgb255 = {value,value,value}.
\pgfplotsset{colormap={CM}{rgb=(0,0,1) color=(red) rgb=(0,0,1)}}
\begin{document}
\begin{tikzpicture}
\begin{axis}[point meta = y, colormap name={CM}]
\addplot [mesh, variable=\x, samples=100,domain=-10:10] ({\x},{sin(deg(\x))+0.6*\x});
\end{axis}
\end{tikzpicture}
\end{document}
which will give you:

Update Credits goes to @marmot
.
You can an inline function in point meta
definition to customise your colormap implicitly using an explicit function (see @marmot's comments).
\documentclass[tikz]{standalone}
\usepackage{pgfplots}
\begin{document}
\begin{tikzpicture}
\begin{axis}
[ colormap/hot] \addplot [point meta = x*x*x,mesh, samples=100,domain=-10:10] {sin(deg(x))+0.6*x};
\end{axis}
\end{tikzpicture}
\end{document}
Here, I used cubic function for manipulating the color map. This will give
