From a81b51b14274f88e0d79ded3bbe7158f1b02bb4e Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Tue, 28 Feb 2023 16:02:27 -0500 Subject: [PATCH] Fix focal min calc after switching to `Viz.datums_range()`.. --- piker/ui/_interaction.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/piker/ui/_interaction.py b/piker/ui/_interaction.py index 9d844204..6de25aa8 100644 --- a/piker/ui/_interaction.py +++ b/piker/ui/_interaction.py @@ -509,7 +509,7 @@ class ChartView(ViewBox): # don't zoom more then the min points setting viz = chart.get_viz(chart.name) - _, vl, lbar, rbar, vr, _ = viz.datums_range() + _, vl, lbar, rbar, vr, r = viz.datums_range() # TODO: max/min zoom limits incorporating time step size. # rl = vr - vl @@ -556,7 +556,7 @@ class ChartView(ViewBox): xl = viz.graphics.x_last() focal = min( xl, - vr, + r, ) self._resetTarget()