importnumpyasnpimportmatplotlib.pyplotaspltfrommpl_toolkits.mplot3dimportAxes3D# Creating array points using numpyx=np.arange(0,20,0.1)y=np.sin(x)z=y*np.sin(x)c=x+y#Change the Size of Graph using Figsizefig=plt.figure(figsize=(10,10))#Generating a 3D sine waveax=plt.axes(projection='3d')# To create a scatter graphax.scatter(x,y,z,c=c)# show the graphplt.show()