我正在使用 python 3.4 使用 matplotlib。当我启动程序时,出现以下警告消息:
C:\Python34-32bits\lib\site-packages\matplotlib\cbook.py:123: MatplotlibDeprecationWarning: matplotlib.mpl 模块已在 1.3 版中弃用。使用
import matplotlib as mpl
代替。 warnings.warn(消息,mplDeprecation,stacklevel=1)
据我所知我不使用 mpl,我所有关于 matplotlib 的导入是:
import matplotlib.pyplot as plt
import matplotlib.animation as animation
我应该做什么?
原文由 Vince 发布,翻译遵循 CC BY-SA 4.0 许可协议
您可以抑制该特定警告,这可能是首选方式: