Here is the code snippet I'm using to plot the graph:
plt.figure(figsize=(15,6))
plt.xticks(rotation='vertical')
for frame in top20s:
plt.plot(frame['name'][:20], frame['pb'][:20], label=frame.league)
plt.legend()
plt.show()
How would I remove all the duplicates in the legend, and have one for each plots?