Merge pull request #968 from ecejeff/unit-label-fix
Fix for AxisItem using old scale to create label
This commit is contained in:
commit
04114fa126
@ -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()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user