Note
Go to the endto download the full example code.
bar3d(x, y, z, dx, dy, dz)#
Seebar3d.

importmatplotlib.pyplotaspltimportnumpyasnpplt.style.use('_mpl-gallery')# Make datax=[1,1,2,2]y=[1,2,1,2]z=[0,0,0,0]dx=np.ones_like(x)*0.5dy=np.ones_like(x)*0.5dz=[2,3,1,4]# Plotfig,ax=plt.subplots(subplot_kw={"projection":"3d"})ax.bar3d(x,y,z,dx,dy,dz)ax.set(xticklabels=[],yticklabels=[],zticklabels=[])plt.show()