只需在前面加上:
from pylab import mpl
mpl.rcParams['font.sans-serif'] = ['SimHei']
#指定默认字体
转自:https://blog.csdn.net/qq_27868877/article/details/78437531
只需在前面加上:
from pylab import mpl
mpl.rcParams['font.sans-serif'] = ['SimHei']
#指定默认字体
转自:https://blog.csdn.net/qq_27868877/article/details/78437531
本文标题:python 使用matplotlib绘图中文显示成框框的解决办
本文链接:https://www.haomeiwen.com/subject/buiouftx.html
网友评论