I have a series of 20 plots (not subplots) to be made in a single figure. I want the legend to be outside of the box. At the same time, I do not want to change the axes, a
Just call legend() call after the plot() call like this:
legend()
plot()
# matplotlib plt.plot(...) plt.legend(loc='center left', bbox_to_anchor=(1, 0.5)) # Pandas df.myCol.plot().legend(loc='center left', bbox_to_anchor=(1, 0.5))
Results would look something like this: