To add a legend to a matplotlib plot, one simply runs legend().
legend()
How to remove a legend from a plot?
(The closest I came to this
If you are not using fig and ax plot objects you can do it like so:
import matplotlib.pyplot as plt # do plot specifics plt.legend('') plt.show()