Skip to content

Image axis order bugfix#1203

Merged
j9ac9k merged 4 commits intopyqtgraph:developfrom
meganbkratz:imageAxisOrder_bugfix
Jun 6, 2020
Merged

Image axis order bugfix#1203
j9ac9k merged 4 commits intopyqtgraph:developfrom
meganbkratz:imageAxisOrder_bugfix

Conversation

@meganbkratz
Copy link
Copy Markdown
Contributor

Lavinia B found a bug when using an roi to select part of an image displayed in ImageView when pyqtgraph's imageAxisOrder option was set to 'row-major'. (See this forum thread: https://groups.google.com/forum/#!topic/pyqtgraph/SE8KcK2LOv4)

This PR is a fix for these bugs. The bugs were occurring in ImageView.roiChanged because accounting for the axis order was only partially implemented.

@j9ac9k
Copy link
Copy Markdown
Member

j9ac9k commented May 30, 2020

Closing/Re-Opening to see if the CI system will grace us with different behavior

@j9ac9k j9ac9k closed this May 30, 2020
@j9ac9k j9ac9k reopened this May 30, 2020
axes = (self.axes['x'], self.axes['y'])

data, coords = self.roi.getArrayRegion(image.view(np.ndarray), self.imageItem, axes, returnMappedCoords=True)
#data, coords = self.roi.getArrayRegion(image.view(np.ndarray), self.imageItem, axes, returnMappedCoords=True)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

can you please delete this commented out line?

@j9ac9k
Copy link
Copy Markdown
Member

j9ac9k commented May 30, 2020

Wonderful, CI passed, would you mind deleting the commented out line, and then I'll go ahead and merge. Thanks for thePR @meganbkratz

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.

2 participants