x = [1, 2, 3] y = [[1, 2], [2, 5], [4, 9]] plt.plot(x, y, label=['low', 'high']) plt.legend()