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

Skip to content

Commit 7a727a1

Browse files
committed
Avoid triggering a DeprecationWarning.
1 parent aca804f commit 7a727a1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/matplotlib/backends/backend_cairo.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,8 @@ def _draw_paths():
307307
# We actually need to call the setters to reset the internal state.
308308
vars(gc).update(gc_vars)
309309
for k, v in gc_vars.items():
310+
if k == "_linestyle": # Deprecated, no effect.
311+
continue
310312
try:
311313
getattr(gc, "set" + k)(v)
312314
except (AttributeError, TypeError) as e:

0 commit comments

Comments
 (0)