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)