![](/img/trans.png)
[英]how to plot specific columns of data frame with different range in one plot (Maybe using sub-plot?)
[英]Stacked-bar in sub-plot using df with more than two columns
我的df
包含三列每月數據。 這是文件。
我想使用堆疊條在子圖中將每個月的所有三列相互疊加。 這是我嘗試過的許多代碼之一:
df.plot(kind='bar', stacked=True, bottom = df['Yf'])
我想把它放在一個子圖中,所有的列都堆疊在一起。 因此,每個月的最高點是相應月份三個參數的總和。 我也想有自由安排哪個參數應該放在底部、中間和頂部。
我想要這樣的東西。
網上搜了下,還沒解決。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.