|
|
|
@ -16,7 +16,7 @@ from matplotlib.font_manager import FontProperties
|
|
|
|
PRINT_LOG = True
|
|
|
|
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 支持中文
|
|
|
|
# 设置 matplotlib 支持中文
|
|
|
|
|