我刚刚安装了最新版本的Matplotlib(3.4.1)。当我使用一些带有以下代码行的代码时
ax = fig.gca(projection='3d')
我收到以下警告:
Calling gca() with keyword arguments was deprecated in Matplotlib 3.4.
Starting two minor releases later, gca() will take no keyword arguments.
The gca() function should only be used to get the current axes,
or if no axes exist, create new axes with default keyword arguments.
To create a new axes with non-default arguments,
use plt.axes() or plt.subplot().
我该如何避免让我的代码出现这个警告?