-1
私はこのコードを持っている。:は、パンダのプロットを保存する方法
import matplotlib.pyplot as plt
fig = plt.get_figure()
fig.savefig("myplot1.pdf")
その与え、この下のエラー:
AttributeError: 'module' object has no attribute 'get_figure'
このための任意のソリューション。 ありがとう
pltをインポートした方法を示すことができます –
あなたの質問に関連している可能性がありますか? https://stackoverflow.com/questions/32219350/how-to-save-pandas-pie-plot-to-a-file – christinabo
最も簡単な解決策:存在しない関数を呼び出さないでください。 – Goyo