From a4dbcfb1e1bf02f8247b3241ed987ca454a610d5 Mon Sep 17 00:00:00 2001 From: Kyle Sunden Date: Fri, 3 Jul 2020 17:02:58 -0500 Subject: [PATCH] Disable autoSIPrefix for DateAxisItem by default When adding a label, it adds the offset for the epoch seconds, (1e09), which is not helpful for date axes --- pyqtgraph/graphicsItems/DateAxisItem.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pyqtgraph/graphicsItems/DateAxisItem.py b/pyqtgraph/graphicsItems/DateAxisItem.py index 846abb90..3d705e9e 100644 --- a/pyqtgraph/graphicsItems/DateAxisItem.py +++ b/pyqtgraph/graphicsItems/DateAxisItem.py @@ -221,6 +221,7 @@ class DateAxisItem(AxisItem): (30, HMS_ZOOM_LEVEL), (1, MS_ZOOM_LEVEL), ]) + self.autoSIPrefix = False def tickStrings(self, values, scale, spacing): tickSpecs = self.zoomLevel.tickSpecs