【发布时间】:2016-05-03 11:56:05
【问题描述】:
我正在尝试使我的图例的框更小,并放置在我的饼图的左上角。到目前为止,我有: pumsData = pd.DataFrame.from_csv('ss13hil.csv')
pieLabels = ['English Only','Spanish','Other Indo-European','Asian and Pacific Island Languages','Other']
plt.pie(pumsData.HHL.value_counts())
plt.axis('equal')
plt.title('Household Languages')
plt.legend(pieLabels,loc=2,borderpad=0.05)
我的图表的输出是:
http://i.stack.imgur.com/WbO4U.png
但我希望它看起来像这样:
http://i.stack.imgur.com/cBxLz.png
enter code here
【问题讨论】:
-
你是问如何让字体变小?
标签: matplotlib charts