0

In GNUPlot it is possible to plot a function on a surface (see, for example, this question). Similar thing can be done in Mathematica (see this question).

Is it possible to do the same thing in Matplotlib? Alternatively, is it possible to map the colourmap by the function that one intends to plot on the surface?

A good example of this is plotting an ellipsoid, and visualising the Gauss curvature at each point on it with the colourmap.

S.G.
  • 357
  • 2
  • 15
  • You cannot plot something *onto* a surface, but you can colorize the surface according to whatever you want to plot.For that use the `facecolors` argument to `plot_surface` – ImportanceOfBeingErnest Mar 23 '19 at 20:03
  • That's exactly what I was looking for. Thanks, @ImportanceOfBeingErnest! – S.G. Mar 24 '19 at 20:36

0 Answers0