Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in
Toggle navigation
F
fund_report
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
彭熊
fund_report
Commits
0e68cdde
Commit
0e68cdde
authored
Jan 14, 2021
by
赵杰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
字体,颜色减少前两个
parent
aeda5786
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
draw.py
app/utils/draw.py
+2
-2
No files found.
app/utils/draw.py
View file @
0e68cdde
...
...
@@ -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'
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment