Changing the axis that colour changes with in surface plots

Hi everybody,

I have been using the plot_surface function to create excellent 3d surface
plots. However, the colour scales with the z axis, and I cannot find any way
to change this. Specifically, I am interested in making the colour change
with distance from the origin - in other words, so that it scales with
(x^2+y^2+z^2)^1/2. Is there any way of doing this in matplotlib?



View this message in context:
Sent from the matplotlib - users mailing list archive at