Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 03035a4

Browse files
committed
Simplify calls to AxesGrid/ImageGrid.
The deleted parameters are just restating the default values, and don't add much to help understanding the calls.
1 parent f9084c1 commit 03035a4

File tree

3 files changed

+0
-6
lines changed

3 files changed

+0
-6
lines changed

examples/axes_grid1/demo_axes_grid2.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,7 @@ def add_inner_title(ax, title, loc, **kwargs):
4646
# *** Demo 1: colorbar at each axes ***
4747
grid = ImageGrid(fig, 211, # similar to subplot(211)
4848
nrows_ncols=(1, 3),
49-
direction="row",
5049
axes_pad=0.05,
51-
add_all=True,
5250
label_mode="1",
5351
share_all=True,
5452
cbar_location="top",
@@ -81,9 +79,7 @@ def add_inner_title(ax, title, loc, **kwargs):
8179
# *** Demo 2: shared colorbar ***
8280
grid2 = ImageGrid(fig, 212,
8381
nrows_ncols=(1, 3),
84-
direction="row",
8582
axes_pad=0.05,
86-
add_all=True,
8783
label_mode="1",
8884
share_all=True,
8985
cbar_location="right",

examples/axes_grid1/simple_axesgrid2.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ def get_demo_image():
2323
grid = ImageGrid(fig, 111, # similar to subplot(111)
2424
nrows_ncols=(1, 3),
2525
axes_pad=0.1,
26-
add_all=True,
2726
label_mode="L",
2827
)
2928

lib/mpl_toolkits/tests/test_axes_grid1.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@ def test_axesgrid_colorbar_log_smoketest(legacy_colorbar):
103103
fig = plt.figure()
104104
grid = AxesGrid(fig, 111, # modified to be only subplot
105105
nrows_ncols=(1, 1),
106-
ngrids=1,
107106
label_mode="L",
108107
cbar_location="top",
109108
cbar_mode="single",

0 commit comments

Comments
 (0)