Skip to content

Support markers from Paths that consist of one line segment #10632

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 1 commit into from
Mar 2, 2018

Conversation

lpsinger
Copy link
Contributor

The elif clauses in Marker.set_marker needed to be reordered because any Python object that has a __len__ method is an instance of collections.Sized.

Before this change, the new unit test test_marker_path() would fail with this exception:

TypeError: 'Path' object does not support indexing

The `elif` clauses in `Marker.set_marker` needed to be reordered
because any Python object that has a `__len__` method is an
instance of `collections.Sized`.
@phobson phobson merged commit 79fb398 into matplotlib:master Mar 2, 2018
@lpsinger lpsinger deleted the short-marker-path branch March 2, 2018 17:39
@QuLogic QuLogic added this to the v3.0 milestone Mar 2, 2018
@ImportanceOfBeingErnest
Copy link
Member

I think this fixes a bug and a regression to 1.x versions. Should be put in the 2.2 branch as well.

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.

5 participants