Learning path

Advanced Matplotlib

Heatmaps, two y axes, complex layouts, 3D surfaces and animations, finishing with a sales dashboard project.

6 lessons

Start the path →
  1. Lesson Heatmaps with imshow and Colormaps Draw a heatmap of a 2D table with ax.imshow, a colormap, a colorbar and a value in each cell.
  2. Lesson Two Y Axes with twinx Plot two measures with different units on one chart using a second y axis from ax.twinx.
  3. Lesson Complex Layouts with subplot_mosaic Build figures with charts of different sizes using plt.subplot_mosaic and width and height ratios.
  4. Lesson 3D Surface Plots Draw 3D surfaces and wireframes with projection="3d", plot_surface and view_init.
  5. Lesson Animations with FuncAnimation Animate a chart frame by frame with FuncAnimation and save it as a GIF.
  6. Lesson Project: Build a Sales Dashboard Combine line, bar and histogram charts, annotations and a style into a 2 × 2 sales dashboard.