
原始代码:
plt.xlabel('训练轮次(Epochs)', fontsize=14, fontweight='bold', fontproperties=chinese_font) # 设置中文字体、加大、加粗
plt.ylabel('R²值', fontsize=14, fontweight='bold', fontproperties=chinese_font) # 设置中文字体、加大、加粗
plt.title('R² 随训练轮次变化', fontsize=16, fontweight='bold', fontproperties=chinese_font) # 设置中文字体、加大、加粗
修改后代码:
plt.xlabel('训练轮次(Epochs)', fontproperties=chinese_font, fontsize=14, fontweight='bold') # 设置中文字体、加大、加粗
plt.ylabel('R²值', fontproperties=chinese_font, fontsize=14, fontweight='bold') # 设置中文字体、加大、加粗
plt.title('R² 随训练轮次变化', fontproperties=chinese_font, fontsize=16, fontweight='bold') # 设置中文字体、加大、加粗
fontproperties=chinese_font 要在fontsize之前。








![[FGPA基础学习]分秒计数器的制作](https://i-blog.csdnimg.cn/img_convert/de3dc7b012c4ac8d6c72b4ee8c3924f6.png)










![[创业之路-344]:战略的本质是选择、聚焦, 是成本/效率/低毛利优先,还是差易化/效益/高毛利优先?无论是成本优先,还是差易化战略,产品聚焦是前提。](https://i-blog.csdnimg.cn/direct/2f1e278ce98d4f0ab2329af51beb1994.png)

