📅  最后修改于: 2022-03-11 14:46:58.996000             🧑  作者: Mango
import matplotlib.pyplot as plt
x=["science","commerce","arts"]
h=[200,300,500]
plt.bar(x,h)
plt.xlabel("courses")
plt.ylabel("students enrolled")
plt.title("students enrolled for different courses 2020")
plt.show()