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.
multichartz
Tyler Goodlet 2023-02-03 10:49:46 -05:00
parent 43c08018ad
commit 0d45495a18
1 changed files with 5 additions and 2 deletions

View File

@ -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