1

I have a 3D matrix (i.e., grid) (x,y,z), each of which has a value f. Let's assume that the grid is bounded, i.e., the matrix forms a cubic lattice.

I want to plot it as a heatmap (or surface), like this surface. In MATLAB, there is a function called pcolor3 which can efficiently do this.

Is there a way of doing this using matplotlib?

EDIT: Or can any python package solve this problem? (still hoping for a matplotlib workaround)

jjv
  • 167
  • 1
  • 5
  • 16
  • 1
    Such a function does not exist in matplotlib. You may need to find other means for plotting your `f(x,y,z)->scalar` function. Here is a very unconventional example: http://stackoverflow.com/questions/40853556/3d-discrete-heatmap-in-matplotlib – ImportanceOfBeingErnest Feb 15 '17 at 23:37

0 Answers0