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

Skip to content

Commit 20fe9f9

Browse files
mdboomdmcdougall
authored andcommitted
Possible fix for #1701: Contour does not pass a list of linestyles to LineCollection
Conflicts: lib/matplotlib/contour.py
1 parent 10bf587 commit 20fe9f9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/matplotlib/contour.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -841,9 +841,9 @@ def __init__(self, ax, *args, **kwargs):
841841
# Default zorder taken from LineCollection
842842
zorder = kwargs.get('zorder', 2)
843843
col = mcoll.LineCollection(segs,
844-
antialiaseds = aa,
845-
linewidths = width,
846-
linestyle = lstyle,
844+
antialiaseds=aa,
845+
linewidths=width,
846+
linestyle=[lstyle],
847847
alpha=self.alpha,
848848
transform=self.get_transform(),
849849
zorder=zorder)

0 commit comments

Comments
 (0)