speed up AxisItem __init__

This commit is contained in:
danielhrisca 2019-01-18 10:31:37 +02:00
parent b575b56edf
commit 82d2b757e4

View File

@ -88,6 +88,8 @@ class AxisItem(GraphicsWidget):
self.autoSIPrefix = True
self.autoSIPrefixScale = 1.0
self.showLabel(False)
self.setRange(0, 1)
if pen is None:
@ -99,8 +101,6 @@ class AxisItem(GraphicsWidget):
if linkView is not None:
self.linkToView(linkView)
self.showLabel(False)
self.grid = False
#self.setCacheMode(self.DeviceCoordinateCache)