(Fixed) TypeError: FigureBase.gca() got an unexpected keyword argument ‘projection’
When trying to plot a 3D normal distribution recently, I encountered the following error: TypeError Traceback (most recent call last) <ipython-input-10-ee1b0cd4b744> in <cell line: 32>() 30 fig = plt.figure() 31 —> 32 ax = fig.gca(projection=’3d’) 33 34 # create a 3D surface plot of the multivariate normal distribution π TypeError: FigureBase.gca() got an unexpected keyword … Read more