python中利用Axes3D库画图的问题

img

             Desktop\earn python\Trajectory MatplotlibDeprecationwarning: C:Usersenovo detection.py:52: Axes3D(fig) adding itself tothe figure 3.4. 1S deprecated since Pass
                                                                                             The keyword auto_add_to_figure=False and fig.add_axes (ax)to this warning. default value of auto_add_to_figure wiLL change to False sthe argument use suppress in2
                                     workin3.6. and Trve valves witt no Longer This is consistent with other AxeS smp13.5 cLasses.
 aX= Axes3D(fig)

请问这是什么情况啊

Axes3D的弃用方法警告,解决办法在提示中写了,就是加两行代码去掉警告信息:
ax = Axes3D(fig,auto_add_to_figure=False)
fig.add_axes(ax)

https://blog.csdn.net/technologist_41/article/details/119882544