This commit is contained in:
Sara Zanzottera 2019-01-17 11:19:16 +01:00
parent 2e69b9c5e6
commit e4681b7201

View File

@ -1014,7 +1014,10 @@ class ViewBox(GraphicsWidget):
self.updateViewRange()
self.update()
self.sigStateChanged.emit(self)
self.sigYRangeChanged.emit(self, tuple(self.state['viewRange'][ax]))
if ax:
self.sigYRangeChanged.emit(self, tuple(self.state['viewRange'][ax]))
else:
self.sigXRangeChanged.emit(self, tuple(self.state['viewRange'][ax]))
def invertY(self, b=True):
"""