Skip to content

Commit 0517187

Browse files
authored
Merge pull request #24084 from oscargus/labelbase36
Revert argument checking for label_mode
2 parents 00b60ad + e940305 commit 0517187

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/mpl_toolkits/axes_grid1/axes_grid.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,6 @@ def set_label_mode(self, mode):
271271
- "1": Only the bottom left axes is labelled.
272272
- "all": all axes are labelled.
273273
"""
274-
_api.check_in_list(["all", "L", "1"], mode=mode)
275274
if mode == "all":
276275
for ax in self.axes_all:
277276
_tick_only(ax, False, False)
@@ -292,7 +291,7 @@ def set_label_mode(self, mode):
292291
ax = col[-1]
293292
_tick_only(ax, bottom_on=False, left_on=True)
294293

295-
else: # "1"
294+
elif mode == "1":
296295
for ax in self.axes_all:
297296
_tick_only(ax, bottom_on=True, left_on=True)
298297

0 commit comments

Comments
 (0)