I have a bunch of 2D histograms (square 2D numpy arrays) that I want to stack in 3D like so:
(Image from: Cardenas, Alfredo E., et al. "Unassisted transport of N-acetyl-L-tryptophanamide through membrane: experiment and simulation of kinetics." The Journal of Physical Chemistry B 116.9 (2012): 2739-2750.)
Does anyone have any good ideas how to do this? I've already tried the contourf approach from Python plot - stacked image slices, but the result is less than optimal.
I recommend that you use
Axes3D.plot_surface
to draw flat surfaces, and use thefacecolor
argument to color them, like this: