From 58625ad25b542a690c03374107665fa48b4ad23c Mon Sep 17 00:00:00 2001 From: wangchunlin Date: Sun, 30 Jun 2024 18:01:17 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=BE=E7=89=87=E6=89=93=E5=8D=B0=E5=8A=A0?= =?UTF-8?q?=E4=B8=8A=E4=B8=AD=E6=96=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/common.py b/utils/common.py index b42a6c9..dd3dd7c 100644 --- a/utils/common.py +++ b/utils/common.py @@ -20,7 +20,7 @@ font_path = os.path.join(os.path.dirname(__file__), '../fonts', 'simhei.ttf') font_prop = FontProperties(fname=font_path) # 设置 matplotlib 支持中文 -plt.rcParams['font.sans-serif'] = [font_prop.get_name()] +plt.rcParams['font.sans-serif'] = ['SimHei'] plt.rcParams['axes.unicode_minus'] = False def log_print(message):