Program Error (Surface Plots)

On running the program for a surface in this video statement axes = fig.gca(projection=‘3d’) is giving an error.
It is showing ‘Unknown projection 3d’.
Matplotlib version - 3.1.0
Python version - 3.7.3

Hey @Codecracaker532, make sure in the beginning of code you have used this line, if not then add this

from mpl_toolkits.mplot3d import Axes3D

Hope this will resolve your doubt. :blush:

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.