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?

Thanks,
Matt

···

--
View this message in context: http://old.nabble.com/Changing-the-axis-that-colour-changes-with-in-surface-plots-tp30018631p30018631.html
Sent from the matplotlib - users mailing list archive at Nabble.com.