Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 74f8161

Browse files
committed
Clarify UserWarning about ignored rcParam
Clarify that only the rcParam that is not related to style is ignored instead of the entire style sheet.
1 parent a8977fd commit 74f8161

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/style/core.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ def _remove_blacklisted_style_params(d, warn=True):
5454
if key in STYLE_BLACKLIST:
5555
if warn:
5656
_api.warn_external(
57-
"Style includes a parameter, '{0}', that is not related "
58-
"to style. Ignoring".format(key))
57+
f"Style includes a parameter, {key!r}, that is not "
58+
"related to style. Ignoring this parameter.")
5959
else:
6060
o[key] = d[key]
6161
return o

0 commit comments

Comments
 (0)