Skip to content
Advertisement

Get legend as a separate picture in Matplotlib

I’m developing a Web application and want to display a figure and its legend in different locations on the page. Which means I need to save the legend as a separate png file. Is this possible in Matplotlib in a more or less straightforward way?

Advertisement

Answer

This could work:

JavaScript

alt text

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement