アットウィキロゴ

99++9

import numpy as np
import matplotlib.pyplot as plt
left = np.array([1, 2, 3, 4, 5])
height = np.array([100, 200, 300, 400, 500])
label = ["Apple", "Banana", "Orange", "Grape", "Strawberry"]
plt.bar(left, height, tick_label=label, align="center")
filename = "output.png"
plt.savefig(filename)
最終更新:2017年11月19日 12:21