成功解决MatplotlibDeprecationWarning: The ‘warn‘ parameter of use() is deprecated since Matplotlib 3.1

成功解决MatplotlibDeprecationWarning: The ‘warn’ parameter of use() is deprecated since Matplotlib 3.1 and will be removed in 3.3.

Table of contents

Solve the problem

Solution

问题描述
MatplotlibDeprecationWarning: The ‘warn’ parameter of use() is deprecated since Matplotlib 3.1 and will be removed in 3.3.

Solution

1. By installing the new version of matplotlib
anaconda command line execution: pip install -U matplotlib

2. Import package code into the programfrom networkx.drawing.tests.test_pylab import plt

import matplotlib.pyplot as pltimport package instead

Guess you like

Origin blog.csdn.net/weixin_44312422/article/details/114941164