Fork me on GitHub

matplotlib中的lable中文显示问题

def set_chinese():
    plt.rcParams['font.sans-serif'] = ['SimHei']
    plt.rcParams['axes.unicode_minus'] = False

加上这两句话图中就可以显示中文

posted @ 2020-05-08 12:48  WalterJ726  阅读(271)  评论(0编辑  收藏  举报