python matplotlib中的颜色百分位数

时间:2014-12-14 05:09:28

标签: python matplotlib colors graphing percentile

plt.xticks(rotation=50)  #rotate x axis labels 50 degrees
plt.xlabel('Year')#label x axis Year
plt.ylabel('Index')#label y axis Index
plt.suptitle('Mahalanobis Distance Index Calculated from Yahoo Finance World Indices')#label title of graph Historical Turbulence Index Calculated from Daily Retuns of G20 Countries
plt.bar(systemicRiskMeasure[0][0].index,systemicRiskMeasure[0][0].values, width=20)#graph bar chart of Mahalanobis Distance
plt.show() 

如何将红色的前75%百分位着色并将其余部分留为蓝色?

0 个答案:

没有答案