2021-02-08 Pythonのmatplotlibでグラフを作成して画像に保存する方法 import matplotlib.pyplot as plt x = [1,2,3] y = [2,4,6] plt.plot(x, y) plt.savefig('a.png')