Python使用matplotlib或者Seaborn箱图(boxplot)可视化时汉语(中文)标签显示成了框框□□、什么情况、我们有解决方案。
#仿真数据
import pandas as pd
import numpy as np
import numpy as np
import pandas as pd
import matplotlib
%matplotlib inline
import plotly as py
from plotly.offline import download_plotlyjs, init_notebook_mode, plot, iplot
init_notebook_mode(connected=True)
# import cufflinks as cf
# cf.go_offline()
import matplotlib.pyplot as plt
import seaborn as sns
data = {'产品':['肉类','盐铁','纺织','木材']*2,
'年份':[1046,1046,1046,1046,1047,1047,1047,1047],
'诸侯':['秦','齐','楚','燕','赵',