add function to disable autoscaling (#1819)

This commit is contained in:
bsobhani 2021-06-07 00:19:23 -04:00 committed by GitHub
parent f13002b251
commit d863907163
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -268,6 +268,10 @@ class HistogramLUTItem(GraphicsWidget):
"""Enable auto-scaling on the histogram plot."""
self.vb.enableAutoRange(self.vb.XYAxes)
def disableAutoHistogramRange(self):
"""Disable auto-scaling on the histogram plot."""
self.vb.disableAutoRange(self.vb.XYAxes)
def setImageItem(self, img):
"""Set an ImageItem to have its levels and LUT automatically controlled by this
HistogramLUTItem.