Python画图不显示中文问题
解决方案:fontproperties哪里需要加哪里
import matplotlib.pyplot as plt
plt.title("中文", fontproperties='SimSun')
plt.xticks(["Precision", "Recall", "F1-score"], fontproperties='Times New Roman')
plt.yticks(["Precision", "Recall", "F1-score"], fontproperties='Times New Roman')
plt.xlabel("中文", fontproperties='SimSun')
plt.ylabel("中文", fontproperties='SimSun')
950

被折叠的 条评论
为什么被折叠?



