You've written some plotting codes like below.

In [1]:
import numpy as np

x = np.linspace(0,1,100)
y = x**2
In [6]:
import matplotlib.pyplot as plt

plt.plot(x, y, label = 'x^2 plot')
plt.legend(loc = 'upper right')
Out[6]:
<matplotlib.legend.Legend at 0x1ee98761248>