So basically I want to plot a function (keep it simple, let's say x^2). But I want to color the line based on the value of the derivative. For instance, if the derivative is greater than 1, I want it red, and if the derivative is less then 1, then I want it blue, or something like that. I would eventually want to apply this idea to bifurcation diagrams in order to visualize the attracting and repelling points quickly, so if anyone feels like generalizing this to contour plots as well that'd be swell! Thanks for any insight!