MAC系统, MATPLOTLIB、SEABORN中文乱码问题
作者:互联网
import matplotlib.pyplot as plt
import seaborn as sns
plt.rcParams['font.family'] = ['Arial Unicode MS'] #用来正常显示中文标签
plt.rcParams['axes.unicode_minus'] = False #用来正常显示负号
sns.set_style('whitegrid',{'font.sans-serif':['Arial Unicode MS','Arial']})
标签:plt,Arial,MS,SEABORN,MATPLOTLIB,乱码,Unicode,import,font 来源: https://www.cnblogs.com/liyiyu/p/16365084.html