label = 'line'
l1, = plt.plot(x, y1, label = 'line')
plot的时候设置lable
l2, = plt.plot(x, y2, label = 'parabola', color = 'red', linewidth = 1.0, linestyle = '--')