Skip to content

Commit

Permalink
Merge pull request #24084 from oscargus/labelbase36
Browse files Browse the repository at this point in the history
Revert argument checking for label_mode
  • Loading branch information
jklymak committed Oct 3, 2022
2 parents 00b60ad + e940305 commit 0517187
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/mpl_toolkits/axes_grid1/axes_grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,6 @@ def set_label_mode(self, mode):
- "1": Only the bottom left axes is labelled.
- "all": all axes are labelled.
"""
_api.check_in_list(["all", "L", "1"], mode=mode)
if mode == "all":
for ax in self.axes_all:
_tick_only(ax, False, False)
Expand All @@ -292,7 +291,7 @@ def set_label_mode(self, mode):
ax = col[-1]
_tick_only(ax, bottom_on=False, left_on=True)

else: # "1"
elif mode == "1":
for ax in self.axes_all:
_tick_only(ax, bottom_on=True, left_on=True)

Expand Down

0 comments on commit 0517187

Please sign in to comment.