Aren Mark Boghozian
Aren Mark Boghozian

Reputation: 159

Matplotlib - Jupyter Notebook

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?enter image description here

enter image description here

Upvotes: 1

Views: 147

Answers (1)

MadLordDev
MadLordDev

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

Related Questions