In plt.figure(figsize=(10, 4)), the numbers specify:
-
A
Rows and columns of subplots
-
B
Font size and line width
-
C
Width and height in pixels
-
D
Width and height in inches
Correct answer
Correct answer
D. Width and height in inches
17 views
Explanation
figsize is in inches. The pixel size is figsize × dpi, so (10, 4) at 100 dpi gives a 1000 × 400 image.
Reference
Asked in: Data Science Interviews
Doubts & discussion
Not sure why the answer is D? Ask here and get an explanation.
Ask a doubt about this MCQ