Skip to course content
Free data visualization course

Data Visualization and Dashboard Storytelling

Module 09 Activity

Scenario

The charts are correct. Now make them reproducible and consistent across a whole deck.

What you build

A house-style function that every chart in your deck starts from, plus controlled axes, data-anchored annotations and deliberate exports.

Steps

  1. Rewrite every chart to use fig, ax = plt.subplots() and work through ax. Remove any mixed plt. styling.
  2. Set axis limits explicitly on every figure, with the floor at zero for bars.
  3. Move every annotation and reference line to data coordinates. Resize one figure and confirm they stay put.
  4. Write one house-style function that takes a title and a subtitle and returns a styled figure and axes.
  5. Rebuild every chart in the deck through that function.
  6. Export at three settings and check the result pasted into a slide, including bbox_inches='tight'.

Evidence to hand in

Review checklist