I am looking for a way to plot a function as a single line of color (in 1D), where the color is defined based on value of the function.
i.e. y=sin(x) will be plotted like a single line with changing gradient.
I am looking for a way to plot a function as a single line of color (in 1D), where the color is defined based on value of the function.
i.e. y=sin(x) will be plotted like a single line with changing gradient.