问题:使用matplotlib绘制3d散点图时报错ax = fig.gca(projection = ‘3d’)
TypeError: gca() got an unexpected keyword argument ‘projection’
解决:改成如下代码即可运行
ax = fig.add_subplot(projection = '3d')
文章出处登录后可见!
已经登录?立即刷新
问题:使用matplotlib绘制3d散点图时报错ax = fig.gca(projection = ‘3d’)
TypeError: gca() got an unexpected keyword argument ‘projection’
解决:改成如下代码即可运行
ax = fig.add_subplot(projection = '3d')
文章出处登录后可见!