Movatterモバイル変換


[0]ホーム

URL:


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

Commit9744df1

Browse files
committed
Cleanup that was missed inc52b936.
1 parent4412114 commit9744df1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

‎lib/matplotlib/colorbar.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -742,12 +742,12 @@ def _set_label(self):
742742
defset_label(self,label,*,loc=None,**kwargs):
743743
"""Add a label to the long axis of the colorbar."""
744744
_pos_xy='y'ifself.orientation=='vertical'else'x'
745-
_protected_kw= [_pos_xy,'horizontalalignment','ha']
746-
ifany([kinkwargsforkin_protected_kw]):
745+
protected_kw= [_pos_xy,'horizontalalignment','ha']
746+
if{*kwargs}& {*protected_kw}:
747747
iflocisnotNone:
748-
raiseTypeError('Specifying*loc* is disallowed when any of'
749-
'its corresponding low level kwargs{} '
750-
'are supplied as well.'.format(_protected_kw))
748+
raiseTypeError(f"Specifying'loc' is disallowed when any of"
749+
f"its corresponding low level kwargs"
750+
f"({protected_kw})are supplied as well")
751751
loc='center'
752752
else:
753753
iflocisNone:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp