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

Skip to content

Commit 4a9f752

Browse files
committed
Avoid triggering a DeprecationWarning.
1 parent 0f7b211 commit 4a9f752

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
@@ -290,6 +290,8 @@ def _draw_paths():
290290
# We actually need to call the setters to reset the internal state.
291291
vars(gc).update(gc_vars)
292292
for k, v in gc_vars.items():
293+
if k == "_linestyle": # Deprecated, no effect.
294+
continue
293295
try:
294296
getattr(gc, "set" + k)(v)
295297
except (AttributeError, TypeError) as e:

0 commit comments

Comments
 (0)