Skip to content

Commit fd51e05

Browse files
authored
Merge pull request #22295 from anntzer/ucfs
Display bad format string in error message.
2 parents 075067c + c7f314b commit fd51e05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/axes/_base.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ def _process_plot_format(fmt):
197197
i += 2
198198
else:
199199
raise ValueError(
200-
'Unrecognized character %c in format string' % c)
200+
f'Unrecognized character {c} in format string {fmt!r}')
201201

202202
if linestyle is None and marker is None:
203203
linestyle = mpl.rcParams['lines.linestyle']

0 commit comments

Comments
 (0)