图片打印加上中文

master
wangchunlin 2 years ago
parent b785f11f84
commit c5a7ebd329

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

Loading…
Cancel
Save