import matplotlib
from matplotlib import pyplot as plt
plt.figure(figsize=(12,6))
plt.plot(womenhw.Year,womenhw.avgh,color="b",label="women",linewidth=1,marker="o")
plt.plot(menhw.Year,menhw.avgh,color="r",label="men",linewidth=1,marker="o")
plt.title("Average Height")
plt.legend()
Matplotlib绘制折线图
最新推荐文章于 2024-10-23 15:40:32 发布
本文通过matplotlib库绘制了男女平均身高的历史趋势图,对比分析了不同年份的身高变化,揭示了性别间身高的差异及随时间的发展趋势。
4295

被折叠的 条评论
为什么被折叠?



