import matplotlib.plot as plt plt.legend(["ravenna","faenza","cesena","milano","asti","torino"],loc=1) # 设置图例