Reputation: 159
I have produced the graph below using matplotlib library in jupyter python. As you can see I have two different data, one is red and the other is green. My question is, is there any way I can have a small side window that states what each color means?
Upvotes: 1
Views: 147
Reputation: 260
There is good function for that called matplotlib.pyplot.legend()
I recommend checking this: https://matplotlib.org/api/_as_gen/matplotlib.pyplot.legend.html
Upvotes: 3