What is GridSpec in Matplotlib, and how is it more flexible than plt.subplots() for complex layouts?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: easy
Interview Round: Other
Overview: Asks what Matplotlib's GridSpec is for and how it handles complex subplot layouts compared with plt.subplots(). Tests knowledge of placing axes across grid cells, controlling row and column proportions, nesting grids, and choosing among layout tools.