Fix for AxisItem using old scale to create label
This commit is contained in:
parent
82d690e08d
commit
d9f0da5a7c
@ -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