From 9b960594aab410ee4bc9ece8288514eb5c0f1079 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Tue, 28 Feb 2023 18:02:34 -0500 Subject: [PATCH] Add per-chart `Viz`/overlay graphics iterator method --- piker/ui/_chart.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/piker/ui/_chart.py b/piker/ui/_chart.py index d4dadab0..095d11e0 100644 --- a/piker/ui/_chart.py +++ b/piker/ui/_chart.py @@ -1355,3 +1355,6 @@ class ChartPlotWidget(pg.PlotWidget): @property def main_viz(self) -> Viz: return self.get_viz(self.name) + + def iter_vizs(self) -> Iterator[Viz]: + return iter(self._vizs.values())