Add linked charts guard-flag for use in display loop

log_linearized_curve_overlays
Tyler Goodlet 2023-01-24 12:32:42 -05:00
parent cf67c790e5
commit e06d4b405d
1 changed files with 8 additions and 3 deletions

View File

@ -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():