在使用
ax = fig.gca(projection='3d')
绘制3D图像时,遇到了如下警告导致无法运行
这是因为,在Matplotlib 3.4版本之后,将fig.gca弃用了,只需要讲代码更改如下:
ax = fig.add_subplot(projection='3d')
在使用
ax = fig.gca(projection='3d')
绘制3D图像时,遇到了如下警告导致无法运行
这是因为,在Matplotlib 3.4版本之后,将fig.gca弃用了,只需要讲代码更改如下:
ax = fig.add_subplot(projection='3d')