| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There was a problem hiding this comment.
pep8 whitespace
Sorry, something went wrong.
There was a problem hiding this comment.
should also get rid of the unneeded backslash and the extraneous space at the end of the exception message.
Sorry, something went wrong.
|
by and large, this looks good to me. Should add at least an image test, probably also a 'what's new' entry to describe the new method added to PolyCollection to allow for describing collections of polygons with holes (assuming I am understanding the limitation of the old code correctly?). |
Sorry, something went wrong.
|
@WeatherGod thanks. I pushed a new commit addressing the pep8 issues. I'll add the docstring, the what's new and look into the image test. You have the gist of it, polygons with holes in certain scenarios render improperly as every line ends up being a "draw" when some need to be "moves" (as I understand it). Making use of the path codes has fixed 100% of my problem cases, which was almost all of my hundreds of plots. |
Sorry, something went wrong.
There was a problem hiding this comment.
still missing the self.stale = True.
Sorry, something went wrong.
There was a problem hiding this comment.
I caught that after I pushed the last commit. I have it in my local branch and I'll push it once I have the testcase figured out (trying to find a simplest case than my 40x40 data that reproduces the error)
Sorry, something went wrong.
Fixes matplotlib#4784 by adding path code information to the Poly3DCollection. This adds two new methods, path_to_3d_segment_with_codes and paths_to_3d_segments_with_codes which are meant to replace the versions without "_with_codes". A method was added to PolyCollection to allow Poly3DCollection to set vertices with path codes. Add image test for a case that causes improper polygon rendering without this fix. This code was adapted from a PR by @ianthomas23.
|
@WeatherGod I pushed a new commit with the additions and changes mentioned above. It failed the python 3.3 CI check, but as far as I can tell that error wasn't related to my changes. |
Sorry, something went wrong.
There was a problem hiding this comment.
If you use izip_longest here, you don't need to allocate a large array of ones in zs first.
Sorry, something went wrong.
|
👍 |
Sorry, something went wrong.
|
The failure is a transient one that has been occurring on Travis for a while now. I restarted the test to make everything green. |
Sorry, something went wrong.
Added code information to Poly3DCollection
| Back | FazBrowse Home | New Git URL |
Fixes #4784 by adding path code information to the Poly3DCollection.
This adds two new methods, path_to_3d_segment_with_codes and
paths_to_3d_segments_with_codes which are meant to replace the
versions without "_with_codes". A method was added to PolyCollection
to allow Poly3DCollection to set vertices with path codes.
This code was adapted from a PR by @ianthomas23.