[英]How to arrange df.plot.line() into subplots
plt.subplot(2, 1, 1)
df_km_cumsum.plot.line(figsize=[20,15],legend=False)
plt.subplot(2, 1, 2)
df_daytot_km.plot.line(figsize=[20,15],legend=False)
感謝@tmdavision,這是最終的解決方案:
fig, (ax1, ax2) = plt.subplots(2,figsize=[20,15])
df_km_cumsum.plot.line(legend=False, ax=ax1)
df_dayavg_km.plot.line(legend=False, ax=ax2)
plt.show()
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.