matplotlib不能正常显示中文

全局配置

import matplotlib
font = {
    'family':'SimHei',
    'weight':'bold',
    'size':12
}
matplotlib.rc("font", **font)

 

posted @ 2023-05-25 16:58  那就凑个整吧  阅读(5)  评论(0编辑  收藏  举报