2014-03-13 93 views
0

我想繪製的酒吧,與累積的數據柱狀圖中累積的數據

rects1 = ax.bar(0.02+ind,a, width2,color='k') 
rects1a = ax.bar(0.02+ind, a2, width2, color='r',bottom=a) 
rects1b = ax.bar(0.02+ind, a3, width2, color='b',bottom=a2) 
rects1c = ax.bar(0.02+ind, a4, width2, color='g',bottom=a3) 
rects1d= ... 

aa2a3等都是例如10%,25%

我想有值a4a3以上,a2以上 最後,我得到100%

我需要改變什麼?

謝謝!

回答