8000 BUG: allow facecolors to be overridden in LineCollection by jakevdp · Pull Request #4958 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

BUG: allow facecolors to be overridden in LineCollection #4958

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 19, 2015
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
BUG: allow facecolors to be overridden in LineCollection
  • Loading branch information
jakevdp committed Aug 19, 2015
commit 1af40f48cf5333b7cab5690636c497e9216b6a1e
6 changes: 5 additions & 1 deletion lib/matplotlib/collections.py
Original file line number Diff line number Diff line change
Expand Up @@ -1053,6 +1053,7 @@ def __init__(self, segments, # Can be None.
cmap=None,
pickradius=5,
zorder=2,
facecolors='none',
**kwargs
):
"""
Expand Down Expand Up @@ -1106,6 +1107,9 @@ def __init__(self, segments, # Can be None.
*zorder*
The zorder of the LineCollection. Default is 2

*facecolors*
The facecolors of the LineCollection. Default is 'none'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe a quick little explanation of what it means for a line collection to have a facecolor?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done


The use of :class:`~matplotlib.cm.ScalarMappable` is optional.
If the :class:`~matplotlib.cm.ScalarMappable` array
:attr:`~matplotlib.cm.ScalarMappable._A` is not None (i.e., a call to
Expand All @@ -1124,7 +1128,7 @@ def __init__(self, segments, # Can be None.
Collection.__init__(
self,
edgecolors=colors,
facecolors='none',
facecolors=facecolors,
linewidths=linewidths,
linestyles=linestyles,
antialiaseds=antialiaseds,
Expand Down
0