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

Commitc189677

Browse files
committed
MNT: use fstring in error message
1 parentd854e5a commitc189677

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎lib/matplotlib/figure.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1508,9 +1508,9 @@ def _process_projection_requirements(
15081508
ifpolar:
15091509
ifprojectionisnotNoneandprojection!='polar':
15101510
raiseValueError(
1511-
"polar=True, yet projection=%r. "
1512-
"Only one of these arguments should be supplied."%
1513-
projection)
1511+
f"polar={polar}, yet projection={projection!r}. "
1512+
"Only one of these arguments should be supplied."
1513+
)
15141514
projection='polar'
15151515

15161516
ifisinstance(projection,str)orprojectionisNone:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp