plot legend location code example Example: plot legend plt.plot([1, 2, 3], label='Inline label') plt.legend()