Commit ea8ef3f2 authored by pengxiong's avatar pengxiong

2

parent a5b53456
...@@ -101,8 +101,8 @@ tamp_order_engine = create_engine( ...@@ -101,8 +101,8 @@ tamp_order_engine = create_engine(
# ) # )
logging.basicConfig(level=logging.INFO, logging.basicConfig(level=logging.INFO,
filename=work_dir + config[env]['log']['filename'], # filename=work_dir + config[env]['log']['filename'],
filemode=config[env]['log']['filemode'], # filemode=config[env]['log']['filemode'],
format=config[env]['log']['format'], format=config[env]['log']['format'],
datefmt=config[env]['log']['datefmt'] datefmt=config[env]['log']['datefmt']
) )
......
...@@ -367,24 +367,24 @@ def draw_index_combination_chart(compare_data): ...@@ -367,24 +367,24 @@ def draw_index_combination_chart(compare_data):
loc = np.arange(max_x_count) # the x locations for the groups loc = np.arange(max_x_count) # the x locations for the groups
# 坐标轴 # 坐标轴
ax1.tick_params(labelsize=fontsize) # ax1.tick_params(labelsize=fontsize)
ax3.tick_params(labelsize=fontsize) # ax3.tick_params(labelsize=fontsize)
ax1.set_xticks(loc) # ax1.set_xticks(loc)
ax1.set_xticklabels(xlabels) # ax1.set_xticklabels(xlabels)
# ax1.yaxis.set_major_formatter(FuncFormatter(to_percent)) # ax1.yaxis.set_major_formatter(FuncFormatter(to_percent))
ax1.set_yticks([]) # ax1.set_yticks([])
ax3.set_yticks([]) # ax3.set_yticks([])
ax3.set_xticks([]) # ax3.set_xticks([])
ax1.axis('off') ax1.axis('off')
ax3.axis('off') ax3.axis('off')
# 基金折线图 # 基金折线图
ax1.plot(loc, origin_combination['data'], color='#D40000', marker='', linewidth=3) 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.plot(loc, index['data'], color='grey', marker='', linewidth=3)
ax3.legend(loc='upper right', fontsize=fontsize) # ax3.legend()
# plt.show() # plt.show()
imgdata = BytesIO() imgdata = BytesIO()
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
from app.api.engine import tamp_user_engine, tamp_order_engine, TAMP_SQL from app.api.engine import tamp_user_engine, tamp_order_engine, TAMP_SQL
from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy import Column, String, Integer, and_ from sqlalchemy import Column, String, Integer, and_
from app.utils.jinjia2html import DataIntegrate from app.utils.jinjia2html_v2 import DataIntegrate
Base = declarative_base() Base = declarative_base()
class IfaUser(Base): class IfaUser(Base):
......
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