axes.legend matplotlib code example
Example 1: position of legend matplotlib
plt.legend(loc='upper right')
Example 2: plt.legend(
plt.legend(['first', 'second']);
plt.legend(loc='upper right')
plt.legend(['first', 'second']);