From 723eef3fd621cbf9b0cefee5513d4a0b1bdda94c Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Wed, 9 Feb 2022 16:00:10 -0500 Subject: [PATCH] :facepalm: assign `Flow` *after* type check... --- piker/ui/_chart.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/piker/ui/_chart.py b/piker/ui/_chart.py index e2fcc9ec..a9350d97 100644 --- a/piker/ui/_chart.py +++ b/piker/ui/_chart.py @@ -995,9 +995,6 @@ class ChartPlotWidget(pg.PlotWidget): # TODO: this probably needs its own method? if overlay: - # anchor_at = ('bottom', 'left') - self._flows[name] = Flow(name=name, plot=pi) - if isinstance(overlay, pg.PlotItem): if overlay not in self.pi_overlay.overlays: raise RuntimeError( @@ -1005,6 +1002,9 @@ class ChartPlotWidget(pg.PlotWidget): ) pi = overlay + # anchor_at = ('bottom', 'left') + self._flows[name] = Flow(name=name, plot=pi) + else: # anchor_at = ('top', 'left')