From a425c29ef14f0d7f9f9d99220d6f75ba188762ee Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Sun, 26 Jun 2022 10:42:00 -0400 Subject: [PATCH] Play with render skip logic on non-dark vlm crypto feeds --- piker/ui/_fsp.py | 8 ++++++-- piker/ui/_interaction.py | 1 + 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/piker/ui/_fsp.py b/piker/ui/_fsp.py index 80bdf8d2..52f394ee 100644 --- a/piker/ui/_fsp.py +++ b/piker/ui/_fsp.py @@ -650,8 +650,7 @@ async def open_vlm_displays( mx = ymax return 0, mx - - chart.view.maxmin = partial(multi_maxmin, names=['volume']) + # chart.view.maxmin = partial(multi_maxmin, names=['volume']) # TODO: fix the x-axis label issue where if you put # the axis on the left it's totally not lined up... @@ -776,12 +775,16 @@ async def open_vlm_displays( ) -> None: for name in names: + + render = False + if 'dark' in name: color = dark_vlm_color elif 'rate' in name: color = vlm_color else: color = 'bracket' + render = True curve, _ = chart.draw_curve( name=name, @@ -799,6 +802,7 @@ async def open_vlm_displays( # since only a placeholder of `None` is entered in # ``.draw_curve()``. flow = chart._flows[name] + # flow.render = render assert flow.plot is pi chart_curves( diff --git a/piker/ui/_interaction.py b/piker/ui/_interaction.py index a659612a..d8f65dd9 100644 --- a/piker/ui/_interaction.py +++ b/piker/ui/_interaction.py @@ -923,6 +923,7 @@ class ChartView(ViewBox): # XXX: super important to be aware of this. # or not flow.graphics.isVisible() ): + # print(f'skipping {flow.name}') continue # pass in no array which will read and render from the last