Skip to content

Commit 4ed006e

Browse files
author
cldssty
authored
stacklevel=3 in warnings.warn() call in _remove_blacklisted_style_params fn
1 parent 35d471e commit 4ed006e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/style/core.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def _remove_blacklisted_style_params(d, warn=True):
4545
if warn:
4646
warnings.warn(
4747
"Style includes a parameter, '{0}', that is not related "
48-
"to style. Ignoring".format(key), stacklevel=2)
48+
"to style. Ignoring".format(key), stacklevel=3)
4949
else:
5050
o[key] = val
5151
return o

0 commit comments

Comments
 (0)