我在Pandas中创建了以下数据帧:
living simulation
(Q+A) ARCII 60.247557 39.752443
CDSSM 49.431875 50.568125
DUET 75.205311 24.794689
MATCHPYRAMID 62.426825 37.573175
MVLSTM 93.288528 6.711472
(Q) ARCII 51.508421 48.491579
CDSSM 57.308882 42.691118
DUET 60.374999 39.625001
MATCHPYRAMID 55.334333 44.665667
MVLSTM 85.297333 14.702667
我想绘制一个按(Q)
和(Q+A)
分组的堆叠条形图。
以下说明给出了分隔条:
ax = df.plot.bar(stacked=True, grid=True, xticks=list(), colormap=cmap1, width=0.5, legend=True)
我想要这样的东西:
让我们试试这个:
输出:
IIUC公司:
输出:
相关问题 更多 >
编程相关推荐