The link to code is
I am getting error in line no 9 . Please tell what is the error as this is the exact code which sir wrote in video.
The link to code is
I am getting error in line no 9 . Please tell what is the error as this is the exact code which sir wrote in video.
Hey @abhaygarg2001 , matplotlib’s current version requires us to import another library for 3D-plots which is :
from mpl_toolkits.mplot3d import Axes3D
Try adding this to your code. Hope this helps.
Happy Learning
Also dont call the function
axes = fig.gca(projection = ‘3d’)
Call this instead
axes = Axes3D(fig)