I am trying to plot two 3D surfaces on the same axes in matplotlib with the plot_surface command.
fig = plt.figure()
fig.figsize = fig_size
ax = fig.gca(proj
One can do a manual fix for this. It is obviously not the most clean solution, but it gives you what you want. Say you want to plot Z1 and Z2 for a common X and Y.
Or directly:
ax.plot_surface(X,Y,np.where(Z1=Z2,Z1,np.nan))
Obvious drawback of this method is that it only works for one specific viewing-direction along the z-axis.