python-matplotlib繪製堆積的條形圖

import matplotlib as mpl import matplotlib.pyplot as plt x=["a","b","c","d","e","f"] y=[2,3,6,7,9,5,] y1=[5,8,9,3,4,6,] plt.xlim(0,20) plt.barh(x,y,align="center",color="r",label="y") plt.barh(x,y1,le
相關文章
相關標籤/搜索