Skip to content

Commit ab05356

Browse files
committed
MNT: Some of the example code was using global F
Make the demo functions use the fig that is passed in, instead of silently ignoring it!
1 parent 7fd766c commit ab05356

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/axes_grid/demo_axes_grid.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def demo_grid_with_each_cbar(fig):
6464
A grid of 2x2 images. Each image has its own colorbar.
6565
"""
6666

67-
grid = AxesGrid(F, 143, # similar to subplot(143)
67+
grid = AxesGrid(fig, 143, # similar to subplot(143)
6868
nrows_ncols=(2, 2),
6969
axes_pad=0.1,
7070
label_mode="1",
@@ -92,7 +92,7 @@ def demo_grid_with_each_cbar_labelled(fig):
9292
A grid of 2x2 images. Each image has its own colorbar.
9393
"""
9494

95-
grid = AxesGrid(F, 144, # similar to subplot(144)
95+
grid = AxesGrid(fig, 144, # similar to subplot(144)
9696
nrows_ncols=(2, 2),
9797
axes_pad=(0.45, 0.15),
9898
label_mode="1",

0 commit comments

Comments
 (0)