Place a Matplotlib legend outside the plot area: anchoring, clipping on save and layout
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: easy
Interview Round: Other
Overview: Asks how to position a Matplotlib legend outside the axes and what to watch for when doing it. Tests understanding of bbox_to_anchor and loc, clipping on save, layout managers, horizontal legends and shared legends for subplots.