Skip to content

Commit 1ced8ca

Browse files
committed
MNT: use fstring in error message
1 parent e1987ce commit 1ced8ca

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/matplotlib/figure.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1508,9 +1508,9 @@ def _process_projection_requirements(
15081508
if polar:
15091509
if projection is not None and projection != 'polar':
15101510
raise ValueError(
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
if isinstance(projection, str) or projection is None:

0 commit comments

Comments
 (0)