簡體   English   中英

在 matplotlib 的 X 軸上繪制兩個不同的標簽

[英]Plotting with two different labels in X-axis in matplotlib

我有一個這樣的 dataframe -

1個

我想為 y 軸上的每個日期tmaxtmin值設置 plot。 如何使用 matplotlib 執行此操作?

Series.unstackDataFrame.plot一起使用:

df['Data_Value'].unstack().plot()

或者使用DataFrame.plot.bar

df['Data_Value'].unstack().plot.bar()

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM