WARNING:matplotlib.font_manager:findfont: Generic family ‘sans-serif’ not found because none of the following families were found: SimHei
问题描述:python matplotlib缺少SimHei这种字体(黑体)
%matplotlib inline
import matplotlib.pyplot as plt
plt.rcParams['font.sans-serif'] = ['SimHei']