我正在运行一个饼图,该图可以工作,但是会引发错误。即时通讯到matplotlib,所以我该如何解决
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
df = pd.DataFrame(3 * np.random.rand(4, 2), index=['a', 'b', 'c', 'd'])
df.plot.pie(subplots=True, figsize=(15, 8))
plt.show()
,错误是:
MatplotlibDeprecationWarning:
The colNum attribute was deprecated in Matplotlib 3.2 and will be removed two minor releases later. Use ax.get_subplotspec().colspan.start instead.
if not layout[ax.rowNum + 1, ax.colNum]: