Note

Go to the endto download the full example code.

plot(xs, ys, zs)#

Seeplot.

plot3d simple
importmatplotlib.pyplotaspltimportnumpyasnpplt.style.use('_mpl-gallery')# Make datan=100xs=np.linspace(0,1,n)ys=np.sin(xs*6*np.pi)zs=np.cos(xs*6*np.pi)# Plotfig,ax=plt.subplots(subplot_kw={"projection":"3d"})ax.plot(xs,ys,zs)ax.set(xticklabels=[],yticklabels=[],zticklabels=[])plt.show()

Gallery generated by Sphinx-Gallery