Fix for AxisItem using old scale to create label

This commit is contained in:
Jeffrey Nichols 2019-06-27 14:45:37 -04:00 committed by GitHub
parent 82d690e08d
commit d9f0da5a7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -448,11 +448,11 @@ class AxisItem(GraphicsWidget):
if self.labelUnits == '' and prefix in ['k', 'm']: ## If we are not showing units, wait until 1e6 before scaling.
scale = 1.0
prefix = ''
self.autoSIPrefixScale = scale
self.setLabel(unitPrefix=prefix)
else:
scale = 1.0
self.autoSIPrefixScale = 1.0
self.autoSIPrefixScale = scale
self.picture = None
self.update()