Module 09 Knowledge Check
5 questions. Pass mark 4 out of 5. Answer every question before checking the answer key below, then retry after reading the feedback.
1. Titles, labels and limits belong to…
- A. the figure
- B. an axes
- C. the pyplot module
- D. the canvas
2. Mixing plt. and ax. calls…
- A. is recommended
- B. silently styles the wrong panel once there are several
- C. raises an error
- D. is faster
3. Matplotlib's automatic axis limits for a bar chart…
- A. always start at zero
- B. are chosen to fill the space, so often truncate
- C. match the data range exactly
- D. cannot be changed
4. Annotations should be anchored in…
- A. pixel coordinates
- B. data coordinates
- C. axes fractions
- D. figure fractions
5. The export setting most often omitted is…
- A. the dpi
- B. bbox_inches='tight'
- C. the file format
- D. transparency
---
Answer Key and Explanations
Check these only after attempting every question.
1. B - an axes
Size, saving and the overall title belong to the figure; everything else is per-axes.
2. B - silently styles the wrong panel once there are several
plt acts on whichever axes is current, which is fine for one chart only.
3. B - are chosen to fill the space, so often truncate
The misleading chart is the one you get by accepting the default.
4. B - data coordinates
Data coordinates survive resizing, which every figure eventually undergoes.
5. B - bbox_inches='tight'
Without it the pasted figure looks small and off-centre inside a large margin.
Practical Check
Apply this module to your own work: complete the module activity for *Matplotlib for Controlled Static Figures*, then write one sentence naming what your result shows and one naming what it does not.
Strong Answer Pattern
A strong answer names the task, the evidence used, the check performed, and the remaining limitation. It avoids "proved", "guaranteed", or "always" unless the evidence genuinely supports it.
