|
|
|
@ -19,10 +19,6 @@ PRINT_LOG = True
|
|
|
|
font_path = os.path.join(os.path.dirname(__file__), '../fonts', 'simhei.ttf')
|
|
|
|
font_path = os.path.join(os.path.dirname(__file__), '../fonts', 'simhei.ttf')
|
|
|
|
font_prop = FontProperties(fname=font_path)
|
|
|
|
font_prop = FontProperties(fname=font_path)
|
|
|
|
|
|
|
|
|
|
|
|
# 设置 matplotlib 支持中文
|
|
|
|
|
|
|
|
# plt.rcParams['font.sans-serif'] = ['SimHei']
|
|
|
|
|
|
|
|
# plt.rcParams['axes.unicode_minus'] = False
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def log_print(message):
|
|
|
|
def log_print(message):
|
|
|
|
logging.info(message)
|
|
|
|
logging.info(message)
|
|
|
|
if PRINT_LOG:
|
|
|
|
if PRINT_LOG:
|
|
|
|
|