多序列条状图

import matplotlib.pyplot as plt
import numpy as np
index = np.arange(5)
values1 = [5,7,3,4,6]
values2 = [6,6,4,5,7]
values3 = [5,6,5,4,6]
bw = 0.3
plt.axis([0,8,0,5])
plt.title('A multiseres Bar chart',fontsize=20)
plt.barh(index,values1,bw,color='b')
plt.barh(index+bw,values2,bw,color='g')
plt.barh(index+2*bw,values3,bw,color='r')
#plt.xticks(index+1.5*bw,['A','B','C','D','E'])
plt.yticks(index+0.4,['A','B','C','D','E'])
plt.show()

上一篇:TCP通信程序练习5——上传文件-服务器给出反馈


下一篇:0ASSET_ATTR_TEXT 不显示字段PS_PSP_PNR2