From 6cbfe3db01cde160dfb05d8847f1a4feb7b7a6e3 Mon Sep 17 00:00:00 2001 From: Andrew Walker Date: Fri, 12 Dec 2025 11:41:59 +0000 Subject: [PATCH] Fix import of matplotlib_toolkits The matplotlib_toolkits module no longer list sub modules in __init__, so instead of `import matplotlib_toolkits` and `matplotlib_toolkits.axes_grid1.make_axes_locable` we have to `import matplotlib_toolkits.axes_grid1` --- _episodes/03-matplotlib.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_episodes/03-matplotlib.md b/_episodes/03-matplotlib.md index b14c5ca63b..f837a50cdf 100644 --- a/_episodes/03-matplotlib.md +++ b/_episodes/03-matplotlib.md @@ -360,7 +360,7 @@ which is the default for plotting matrix-type data (because this is where `[0:0] We can also add a colour bar to help describe the figure, with a little more code: ~~~ -import mpl_toolkits +import mpl_toolkits.axes_grid1 matplotlib.pyplot.figure() ax = matplotlib.pyplot.gca()