import numpy as np import matplotlib.pyplot as plt # 折れ線グラフを出力 left = np.array([1, 2, 3, 4, 5]) height = np.array([100, 300, 200, 500, 400]) plt.plot(left, height) plt.plot(left, left) plt.show()