Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
BUG: PcolorImage handles non-contiguous arrays, provides data readout #6930
Conversation
efiring
added the
needs_review
label
Aug 9, 2016
efiring
added this to the
2.0 (style change major release)
milestone
Aug 9, 2016
|
Lots of unrelated failures: |
|
I fixed the unrelated error on master so cycling this to rerun on current master |
jenshnielsen
closed this
Aug 9, 2016
jenshnielsen
removed the
needs_review
label
Aug 9, 2016
jenshnielsen
reopened this
Aug 9, 2016
jenshnielsen
added the
needs_review
label
Aug 9, 2016
|
@mdboom, on second thought, what I characterized as a bug in _image.pcolor2 is better described as a limitation or requirement. Originally, PcolorImage was ensuring that x and y are contiguous. I broke that by indexing with |
tacaswell
commented on the diff
Aug 21, 2016
| @@ -985,6 +985,15 @@ def set_data(self, x, y, A): | ||
| self.is_grayscale = True | ||
| else: | ||
| raise ValueError("3D arrays must have RGB or RGBA as last dim") | ||
| + | ||
| + # For efficient cursor readout, ensure x and y are increasing. | ||
| + if x[-1] < x[0]: |
tacaswell
Owner
|
|
I am |
|
The travis mac infrastructure is down, merging as it previously passed an the new changes are docstring only. |
tacaswell
merged commit 28b6a99
into matplotlib:master
Aug 25, 2016
tacaswell
removed the
needs_review
label
Aug 25, 2016
tacaswell
added a commit
that referenced
this pull request
Aug 25, 2016
|
|
tacaswell |
fab69a1
|
|
backported to v2.x as fab69a1 |
efiring commentedAug 9, 2016
Closes #6905, and fixes a bug in the underlying
_image.pcolor2function. It requires that all three input arrays be contiguous, so I appended_contiguousto the converters forxandy.To verify both the data cursor and the ability to handle non-contiguous inputs,