Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 3748ad5

Browse files
authored
Merge pull request matplotlib#24087 from meeseeksmachine/auto-backport-of-pr-24084-on-v3.6.x
Backport PR matplotlib#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+
elifmode== "1":
294293
for ax in self.axes_all:
295294
_tick_only(ax, bottom_on=True, left_on=True)
296295

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /