Commit 0e68cdde authored by 赵杰's avatar 赵杰

字体,颜色减少前两个

parent aeda5786
......@@ -21,7 +21,7 @@ from matplotlib.font_manager import FontProperties
matplotlib.use('Agg')
# 中文字体初始化
plt.rcParams['font.sans-serif']=['Heiti TC']
plt.rcParams['font.sans-serif']=['SimSun']
def to_percent(temp, position):
......@@ -113,7 +113,7 @@ def draw_contribution_chart(xlabels, product_list, cumulative):
max_x_count = max([x['data'].size for x in product_list])
loc = np.arange(max_x_count) # the x locations for the groups
width = 0.35 # the width of the bars: can also be len(x) sequence
color_list = ['#333333', '#928C8C', '#AFAFAF', '#D56666', '#DE7A7A',
color_list = ['#AFAFAF', '#D56666', '#DE7A7A',
'#ED9494', '#F4A9A9', '#FFC8C8', '#DEA27A', '#EFAF85',
'#FBBF98', '#FFD2B5', '#E1C277', '#EBCD85', '#FEDF96']
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment