8000 Merge pull request #4571 from ericdill/use-local-figure · matplotlib/matplotlib@5a798d8 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5a798d8

Browse files
committed
Merge pull request #4571 from ericdill/use-local-figure< 10000 /div>Don't ignore the `fig` arg in demo code
2 parents 7fd766c + ab05356 commit 5a798d8

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)
0