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

Skip to content

Commit 1af40f4

Browse files
committed
BUG: allow facecolors to be overridden in LineCollection
1 parent f8b671f commit 1af40f4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/matplotlib/collections.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1053,6 +1053,7 @@ def __init__(self, segments, # Can be None.
10531053
cmap=None,
10541054
pickradius=5,
10551055
zorder=2,
1056+
facecolors='none',
10561057
**kwargs
10571058
):
10581059
"""
@@ -1106,6 +1107,9 @@ def __init__(self, segments, # Can be None.
11061107
*zorder*
11071108
The zorder of the LineCollection. Default is 2
11081109
1110+
*facecolors*
1111+
The facecolors of the LineCollection. Default is 'none'
1112+
11091113
The use of :class:`~matplotlib.cm.ScalarMappable` is optional.
11101114
If the :class:`~matplotlib.cm.ScalarMappable` array
11111115
:attr:`~matplotlib.cm.ScalarMappable._A` is not None (i.e., a call to
@@ -1124,7 +1128,7 @@ def __init__(self, segments, # Can be None.
11241128
Collection.__init__(
11251129
self,
11261130
edgecolors=colors,
1127-
facecolors='none',
1131+
facecolors=facecolors,
11281132
linewidths=linewidths,
11291133
linestyles=linestyles,
11301134
antialiaseds=antialiaseds,

0 commit comments

Comments
 (0)