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

Lines changed: 1 addition & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy