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
8af965c7
Commit
8af965c7
authored
Jan 22, 2021
by
赵杰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
折线图
parent
ecf92890
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
draw.py
app/utils/draw.py
+1
-1
No files found.
app/utils/draw.py
View file @
8af965c7
...
@@ -89,7 +89,7 @@ def draw_month_return_chart(xlabels, product_list, cumulative):
...
@@ -89,7 +89,7 @@ def draw_month_return_chart(xlabels, product_list, cumulative):
ax2
.
plot
(
loc
,
cumulative
[
'data'
],
color
=
'#D40000'
,
marker
=
'.'
,
linewidth
=
3
,
label
=
cumulative
[
'name'
])
ax2
.
plot
(
loc
,
cumulative
[
'data'
],
color
=
'#D40000'
,
marker
=
'.'
,
linewidth
=
3
,
label
=
cumulative
[
'name'
])
# 添加数字标签
# 添加数字标签
for
a
,
b
in
zip
(
range
(
len
(
xlabels
)),
cumulative
[
'data'
]):
for
a
,
b
in
zip
(
range
(
len
(
xlabels
)),
cumulative
[
'data'
]):
ax2
.
text
(
a
*
1.05
,
b
*
1.05
,
'
%.2
f'
%
b
+
'
%
'
,
ha
=
'center'
,
va
=
'bottom'
,
fontsize
=
fontsize
,
color
=
'#D40000'
)
ax2
.
text
(
a
*
1.05
,
b
,
'
%.2
f'
%
b
+
'
%
'
,
ha
=
'center'
,
va
=
'bottom'
,
fontsize
=
fontsize
,
color
=
'#D40000'
)
ax2
.
legend
(
loc
=
'upper center'
,
fontsize
=
fontsize
)
ax2
.
legend
(
loc
=
'upper center'
,
fontsize
=
fontsize
)
# plt.show()
# plt.show()
...
...
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