From 06934be0474894641f01faf1e1fae93da60d311f Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Fri, 28 Jan 2022 08:46:24 -0500 Subject: [PATCH] Overlay dark $volume B) --- piker/ui/_fsp.py | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/piker/ui/_fsp.py b/piker/ui/_fsp.py index 5112ede9..704ecf9e 100644 --- a/piker/ui/_fsp.py +++ b/piker/ui/_fsp.py @@ -678,15 +678,10 @@ async def open_vlm_displays( pi.vb._maxmin = partial(maxmin, name='dolla_vlm') curve, _ = chart.draw_curve( - name='dolla_vlm', data=shm.array, - array_key='dolla_vlm', overlay=pi, - # color='bracket', - # TODO: this color or dark volume - # color='charcoal', step_mode=True, # **conf.get('chart_kwargs', {}) ) @@ -703,6 +698,17 @@ async def open_vlm_displays( # ``.draw_curve()``. chart._overlays['dolla_vlm'] = shm + curve, _ = chart.draw_curve( + + name='dark_vlm', + data=shm.array, + array_key='dark_vlm', + overlay=pi, + color='charcoal', # darker theme hue + step_mode=True, + # **conf.get('chart_kwargs', {}) + ) + chart._overlays['dark_vlm'] = shm # XXX: old dict-style config before it was moved into the # helper task # 'dolla_vlm': {