plt.legend

plt.legend((u'头等舱', u'2等舱', u'3等舱'), loc='best')

原文地址:https://www.cnblogs.com/key221/p/9392387.html