|
|
|
@ -20,7 +20,7 @@ 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 支持中文
|
|
|
|
# 设置 matplotlib 支持中文
|
|
|
|
plt.rcParams['font.sans-serif'] = [font_prop.get_name()]
|
|
|
|
plt.rcParams['font.sans-serif'] = ['SimHei']
|
|
|
|
plt.rcParams['axes.unicode_minus'] = False
|
|
|
|
plt.rcParams['axes.unicode_minus'] = False
|
|
|
|
|
|
|
|
|
|
|
|
def log_print(message):
|
|
|
|
def log_print(message):
|
|
|
|
|