From c690e141e1d029f60d1950188ddb6f75e00fe39c Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Fri, 3 Feb 2023 10:49:46 -0500 Subject: [PATCH] Don't unset `Viz.render` for unit vlm Such that we still y-range auto-sort inside `ChartView.interact_graphics_cycle()` still runs on the unit vlm axis and we always size such that the y-label stays in view. --- piker/ui/_fsp.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/piker/ui/_fsp.py b/piker/ui/_fsp.py index 6da93b71..d1c53db5 100644 --- a/piker/ui/_fsp.py +++ b/piker/ui/_fsp.py @@ -844,9 +844,12 @@ async def open_vlm_displays( # vlm_chart.plotItem.layout.setMinimumWidth(0) # vlm_chart.removeAxis('left') vlm_viz = vlm_chart._vizs['volume'] - vlm_viz.render = False - # avoid range sorting on volume once disabled + # NOTE: DON'T DO THIS. + # WHY: we want range sorting on volume for the RHS label! + # -> if you don't want that then use this but likely you + # only will if we decide to drop unit vlm.. + # vlm_viz.render = False vlm_chart.view.disable_auto_yrange() # Trade rate overlay