From 88870fdda76c7b8fdb3f56d0154814059b396347 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Tue, 15 Nov 2022 15:44:52 -0500 Subject: [PATCH] Set `brokers: list[st]` from mods when not provided.. --- piker/data/feed.py | 1 + piker/ui/_overlay.py | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/piker/data/feed.py b/piker/data/feed.py index b243be8d..6cb25bdc 100644 --- a/piker/data/feed.py +++ b/piker/data/feed.py @@ -1450,6 +1450,7 @@ class Feed(Struct): if brokers is None: mods = self.mods + brokers = list(self.mods) else: mods = {name: self.mods[name] for name in brokers} diff --git a/piker/ui/_overlay.py b/piker/ui/_overlay.py index af66a735..ac15a9dc 100644 --- a/piker/ui/_overlay.py +++ b/piker/ui/_overlay.py @@ -304,7 +304,7 @@ class PlotItemOverlay: # NOTE: required for scene layering/relaying; this guarantees # the "root" plot receives priority for interaction # events/signals. - root_plotitem.vb.setZValue(1000) + root_plotitem.vb.setZValue(10) self.overlays: list[PlotItem] = [] self.layout = ComposedGridLayout(root_plotitem) @@ -494,6 +494,8 @@ class PlotItemOverlay: root.vb.setFocus() assert root.vb.focusWidget() + vb.setZValue(100) + def get_axis( self, plot: PlotItem,