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
ea8ef3f2
Commit
ea8ef3f2
authored
Dec 10, 2020
by
pengxiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2
parent
a5b53456
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
12 deletions
+12
-12
engine.py
app/api/engine.py
+2
-2
draw.py
app/utils/draw.py
+9
-9
timed_task.py
app/utils/timed_task.py
+1
-1
No files found.
app/api/engine.py
View file @
ea8ef3f2
...
...
@@ -101,8 +101,8 @@ tamp_order_engine = create_engine(
# )
logging
.
basicConfig
(
level
=
logging
.
INFO
,
filename
=
work_dir
+
config
[
env
][
'log'
][
'filename'
],
filemode
=
config
[
env
][
'log'
][
'filemode'
],
#
filename=work_dir + config[env]['log']['filename'],
#
filemode=config[env]['log']['filemode'],
format
=
config
[
env
][
'log'
][
'format'
],
datefmt
=
config
[
env
][
'log'
][
'datefmt'
]
)
...
...
app/utils/draw.py
View file @
ea8ef3f2
...
...
@@ -367,24 +367,24 @@ def draw_index_combination_chart(compare_data):
loc
=
np
.
arange
(
max_x_count
)
# the x locations for the groups
# 坐标轴
ax1
.
tick_params
(
labelsize
=
fontsize
)
ax3
.
tick_params
(
labelsize
=
fontsize
)
ax1
.
set_xticks
(
loc
)
ax1
.
set_xticklabels
(
xlabels
)
#
ax1.tick_params(labelsize=fontsize)
#
ax3.tick_params(labelsize=fontsize)
#
ax1.set_xticks(loc)
#
ax1.set_xticklabels(xlabels)
# ax1.yaxis.set_major_formatter(FuncFormatter(to_percent))
ax1
.
set_yticks
([])
ax3
.
set_yticks
([])
ax3
.
set_xticks
([])
#
ax1.set_yticks([])
#
ax3.set_yticks([])
#
ax3.set_xticks([])
ax1
.
axis
(
'off'
)
ax3
.
axis
(
'off'
)
# 基金折线图
ax1
.
plot
(
loc
,
origin_combination
[
'data'
],
color
=
'#D40000'
,
marker
=
''
,
linewidth
=
3
)
ax1
.
legend
(
loc
=
'upper left'
,
fontsize
=
fontsize
)
# ax1.legend(
)
# 指数折线图
ax3
.
plot
(
loc
,
index
[
'data'
],
color
=
'grey'
,
marker
=
''
,
linewidth
=
3
)
ax3
.
legend
(
loc
=
'upper right'
,
fontsize
=
fontsize
)
# ax3.legend(
)
# plt.show()
imgdata
=
BytesIO
()
...
...
app/utils/timed_task.py
View file @
ea8ef3f2
...
...
@@ -9,7 +9,7 @@
from
app.api.engine
import
tamp_user_engine
,
tamp_order_engine
,
TAMP_SQL
from
sqlalchemy.ext.declarative
import
declarative_base
from
sqlalchemy
import
Column
,
String
,
Integer
,
and_
from
app.utils.jinjia2html
import
DataIntegrate
from
app.utils.jinjia2html
_v2
import
DataIntegrate
Base
=
declarative_base
()
class
IfaUser
(
Base
):
...
...
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