Python 如何在matplotlib pyplot中显示unicode字符?

Python 如何在matplotlib pyplot中显示unicode字符?,python,matplotlib,Python,Matplotlib,我试图在matplotlib中显示unicode字符,但它没有显示为unicode,而是显示为方框。下面是代码和结果 如何在matplotlib中显示unicode字符串?使用matplotlib.rc'font',family='Your font'显示所需的unicode

我试图在matplotlib中显示unicode字符,但它没有显示为unicode,而是显示为方框。下面是代码和结果

如何在matplotlib中显示unicode字符串?

使用matplotlib.rc'font',family='Your font'显示所需的unicode