Skip to content

Commit 3748ad5

Browse files
authored
Merge pull request #24087 from meeseeksmachine/auto-backport-of-pr-24084-on-v3.6.x
Backport PR #24084 on branch v3.6.x (Revert argument checking for label_mode)
2 parents e522abd + 8e840d7 commit 3748ad5

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
@@ -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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy