使用Python绘图时,隐藏坐标轴出现警告。我可以忽视吗?

MatplotlibDeprecationWarning: Adding an axes using the same arguments as a previous axes currently reuses the earlier instance. In a future version, a new instance will always be created and returned. Meanwhile, this warning can be suppressed, and the future behavior ensured, by passing a unique label to each axes instance.

可以忽视,因为它说在未来的版本可能有问题,但是如果你只用但钱的版本,是没事的。

基本没有影响,但最好升级一下

fig=plt.figure() # --------------------------------------------------- 这种ax设置方式,不会报出 警告
ax=fig.add_subplot(projection='3d')