Matplotlib constrained_layout vs tight_layout: what they fix and when to adjust spacing by hand
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: easy
Interview Round: Other
Overview: Asks what Matplotlib's tight_layout and constrained_layout do, which spacing problems they fix, and when manual adjustment is still needed. Tests practical knowledge of subplot spacing, colorbars and figure titles, layout engine compatibility, and exact axes placement.