I want to place my label on top of my plot in another box in Python. My existing plot looks as follows:
Here is my code:
fig = plt.figure()
plt.plot(t, sol[:,0], 'blue', lw = 3, label='$N$')
plt.plot(t, sol[:,1], 'green', lw = 3, label='$P$')
plt.plot(t, sol[:,2], 'red', lw = 3, label='$Z$')
plt.plot(t, sol[:,3], 'black', lw = 3, label='$Z$')
plt.legend(loc='best')
plt.xlabel('Time (days)', fontsize=10.)
plt.ylabel('$N,P,Z,D$ ($\mu$mol N L$^{-1}$)', fontsize=10.)
plt.xlim([0.,365.*sim_years])
plt.ylim([0,16])
plt.xticks(fontsize=10.)
plt.yticks(fontsize=10.)
plt.grid()
plt.show()
I want a label to look like this: