From e06d4b405d8b8e6a1fe856bc3d3c72ed14973938 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Tue, 24 Jan 2023 12:32:42 -0500 Subject: [PATCH] Add linked charts guard-flag for use in display loop --- piker/ui/_interaction.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/piker/ui/_interaction.py b/piker/ui/_interaction.py index bf119be2..a0b67aeb 100644 --- a/piker/ui/_interaction.py +++ b/piker/ui/_interaction.py @@ -803,7 +803,7 @@ class ChartView(ViewBox): ''' name = self.name - # print(f'YRANGE ON {name}') + # print(f'YRANGE ON {name} -> yrange{yrange}') profiler = Profiler( msg=f'`ChartView._set_yrange()`: `{name}`', disabled=not pg_profile_enabled(), @@ -950,9 +950,11 @@ class ChartView(ViewBox): def interact_graphics_cycle( self, - *args, + *args, # capture signal-handler related shit + debug_print: bool = False, do_overlay_scaling: bool = True, + do_linked_charts: bool = True, ): profiler = Profiler( msg=f'ChartView.interact_graphics_cycle() for {self.name}', @@ -974,7 +976,10 @@ class ChartView(ViewBox): plots = {chart.name: chart} linked = self.linked - if linked: + if ( + do_linked_charts + and linked + ): plots |= linked.subplots for chart_name, chart in plots.items():