📜  在线 matplotlib 编译器 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:58.996000             🧑  作者: Mango

代码示例3
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()