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

Skip to content

Commit e940305

Browse files
committed
Revert argument checking for label_mode
1 parent 7de767e commit e940305

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/mpl_toolkits/axes_grid1/axes_grid.py

Lines changed: 1 addition & 2 deletions
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)