What is the difference between a figure's size and its DPI, and how do they interact when you save a raster image?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: easy
Interview Round: Other
Overview: Asks how a Matplotlib figure's size in inches and its DPI differ, and how they combine when you save a PNG or another raster image. Tests whether you can predict the pixel dimensions of an export and pick settings for print or screen without distorting the text.