Quantcast
Channel: How do I make a single legend for many subplots? - Stack Overflow
Viewing all articles
Browse latest Browse all 11

How do I make a single legend for many subplots?

$
0
0

I am plotting the same type of information, but for different countries, with multiple subplots with Matplotlib. That is, I have nine plots on a 3x3 grid, all with the same for lines (of course, different values per line).

However, I have not figured out how to put a single legend (since all nine subplots have the same lines) on the figure just once.

How do I do that?


Viewing all articles
Browse latest Browse all 11

Latest Images

Trending Articles





Latest Images