matplotlib画图报错——没有字体项目场景:
项目场景:提示:这里简述项目相关背景:使用dendrogram画层次聚类树的时候报没有字体错:RuntimeWarning: Glyph 38142 missing from current font.加入两行代码解决:plt.rcParams['font.sans-serif'] = ['SimHei'] # 显示中文标签plt.rcParams['axes.unicode_minus'] = False# 可视化from matplotlib import pyplot as pl