From 3fd394d6937f1bccb88c790e342197419b74201a Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Tue, 27 Dec 2022 13:10:25 -0500 Subject: [PATCH] Use static `L1Label._x_br_offset` as l1 label length --- piker/ui/_chart.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/piker/ui/_chart.py b/piker/ui/_chart.py index 0f8c33c4..ed278acc 100644 --- a/piker/ui/_chart.py +++ b/piker/ui/_chart.py @@ -984,7 +984,8 @@ class ChartPlotWidget(pg.PlotWidget): ''' # TODO: compute some sensible maximum value here # and use a humanized scheme to limit to that length. - l1_len = self._max_l1_line_len + from ._l1 import L1Label + l1_len = abs(L1Label._x_br_offset) ryaxis = self.getAxis('right') r_axis_x = ryaxis.pos().x()