解决matplotlib不显示中文的问题

import matplotlib
import matplotlib.pyplot as plt
from matplotlib.font_manager import FontManager
import pandas as pd
matplotlib.rc("font",family="YouYuan")
mpl_fonts = set(f.name for f in FontManager().ttflist)
原文地址:https://www.cnblogs.com/lpdeboke/p/15100490.html