FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Backport PR #24084: Revert argument checking for label_mode · meeseeksmachine/matplotlib@8e840d7 · GitHub

Repository navigation

Commit 8e840d7

Browse files
authored andcommitted
Backport PR matplotlib#24084: Revert argument checking for label_mode
1 parent e522abd commit 8e840d7

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎lib/mpl_toolkits/axes_grid1/axes_grid.py‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,6 @@ def set_label_mode(self, mode):
269269
- "1": Only the bottom left axes is labelled.
270270
- "all": all axes are labelled.
271271
"""
272-
_api.check_in_list(["all", "L", "1"], mode=mode)
273272
if mode == "all":
274273
for ax in self.axes_all:
275274
_tick_only(ax, False, False)
@@ -290,7 +289,7 @@ def set_label_mode(self, mode):
290289
ax = col[-1]
291290
_tick_only(ax, bottom_on=False, left_on=True)
292291

293-
else: # "1"
292+
elif mode == "1":
294293
for ax in self.axes_all:
295294
_tick_only(ax, bottom_on=True, left_on=True)
296295

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL