Added the "cleared" method to Path, and updated the path module's documentation.#2011
Added the "cleared" method to Path, and updated the path module's documentation.#2011mdboom merged 2 commits intomatplotlib:masterfrom
Conversation
lib/matplotlib/path.py
Outdated
There was a problem hiding this comment.
Might as well do this in numpydoc format as well, while we're at it.
|
Ok. Think this is now ready @mdboom. |
There was a problem hiding this comment.
Can we keep this as it was -- I know it doesn't really matter, but there are some tricks used to detect the end of paths that are made more obvious when you think of it in hex.
There was a problem hiding this comment.
but there are some tricks used to detect the end of paths that are made more obvious when you think of it in hex
For whom? I can see the benefit for developers, but not for everyday users. I'd be happy to add a comment here to jig the readers memory, if that would suffice?
There was a problem hiding this comment.
Ok -- probably simplest to leave it as a (base 10) number, then. A comment here doesn't make sense either.
|
I still think we should have |
The two cases I can envisage with cleared both just use the codes and verts. That said, I'm happy enough to compromise and have implemented a fast constructor for Path. Was that the kind of thing you had in mind? |
|
Yes -- that's basically what I had in mind. I think that's handy. There may be other cases in there where this should be used instead of the constructor, but that can wait for another PR. |
Nice. I've added a commit. I expect to have to rebase this PR after the deprecations PR gets merged. |
No worries. Having your invaluable feedback on this module has been great. I'll rebase now. |
|
Ok. Once travis does its thing, lets merge 😄 |
|
Other than the spurious test failiure from master, the tests are passing with this PR. |
Added the "cleared" method to Path, and updated the path module's documentation.
No description provided.