记录一下绘制统计直方图的代码
for k, v in area_dict.items():
plt.figure()
plt.hist(v, bins=40, density=0, facecolor="blue", edgecolor="black", alpha=0.7)
plt.xlabel("Area")
plt.ylabel("Number")
plt.title("Areas distribution of {} in size of 512-256".format(k))
plt.savefig("./save_im/"+k+'.jpg')
plt.clf()