标签:show range imp char atp otl res plot har
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()
标签:show range imp char atp otl res plot har
原文地址:https://www.cnblogs.com/wei23/p/13121887.html