Note
Go to the endto download the full example code.
scatter(xs, ys, zs)#
Seescatter.

importmatplotlib.pyplotaspltimportnumpyasnpplt.style.use('_mpl-gallery')# Make datanp.random.seed(19680801)n=100rng=np.random.default_rng()xs=rng.uniform(23,32,n)ys=rng.uniform(0,100,n)zs=rng.uniform(-50,-25,n)# Plotfig,ax=plt.subplots(subplot_kw={"projection":"3d"})ax.scatter(xs,ys,zs)ax.set(xticklabels=[],yticklabels=[],zticklabels=[])plt.show()