Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
#76
提示
TypeError Traceback (most recent call last)
Cell In[141], line 56
54 zz = 2 + xx*0;
55 caption = '$z - 2 = 0$';
---> 56 plot_surf (xx,yy,zz,caption)
58 #%% y - z = 0
59 zz = yy;
Cell In[141], line 13, in plot_surf(xx, yy, zz, caption)
10 colors = cm.RdYlBu_r(norm_plt(zz))
12 fig = plt.figure()
---> 13 ax = fig.gca(projection='3d')
14 surf = ax.plot_surface(xx,yy,zz,
15 facecolors=colors, shade=False)
16 surf.set_facecolor((0,0,0,0))
TypeError: FigureBase.gca() got an unexpected keyword argument 'projection'
改为
或
后正常。