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

Skip to content

Conversation

dstansby
Copy link
Member

Fixes #7560

matplotlib.collections.EventCollection doesn't like being handed None for lineoffsets, linelengths, or linestyles, so if a zero-length array is provided I've set it to just pass the default values.

Possibly in the future matplotlib.collections.EventCollection wants to be able to accept None for these kwargs?

if len(linewidths) == 0:
lineoffsets = [None]
linewidths = [None]
if len(linestyles) == 0:
Copy link
Member

Choose a reason for hiding this comment

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

I understand why to do this for symmetry, but this is a odd special case. Why would you pass in an empty list to get the default behavior?

Copy link
Contributor

Choose a reason for hiding this comment

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

I guess one could also ask why one would want to pass an empty list to get the default for any of the earlier parameters... (unless there's a compelling reason, we should get rid of that behavior :-))

@tacaswell tacaswell added this to the 2.2 (next next feature release) milestone Aug 30, 2017
@dstansby
Copy link
Member Author

dstansby commented Nov 2, 2017

I have no plans to work on this further, so going to close.

@dstansby dstansby closed this Nov 2, 2017
@QuLogic QuLogic modified the milestones: needs sorting, v2.2.0 Feb 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants