1 2 Fork me on GitHub 6

解决matplotlib不显示中文的问题

import matplotlib
import matplotlib.pyplot as plt
from matplotlib.font_manager import FontManager
import pandas as pd
matplotlib.rc("font",family="Arial Unicode MS")
mpl_fonts = set(f.name for f in FontManager().ttflist)
posted @ 2021-08-04 19:41  peng_li  阅读(122)  评论(0编辑  收藏  举报
1