python - How does one draw the X = 0 plane using matplotlib (mpl3d)? -


here answer lets 1 plot plane using matplotlib, if 1 uses vector [1, 0, 0], nothing gets plotted! makes sense, because of way code set (meshgrid on x-y plane, , z points determine surface.

so, how can plot x = 0 plane using matplotlib?

this less generic example linked, trick:

import numpy np import matplotlib.pyplot plt mpl_toolkits.mplot3d import axes3d  yy, zz = np.meshgrid(range(2), range(2)) xx = yy*0  ax = plt.subplot(projection='3d') ax.plot_surface(xx, yy, zz) plt.show() 

enter image description here


Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -