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.
storage_cli
Tyler Goodlet 2023-02-03 10:49:46 -05:00
parent eca140ac87
commit cfd3ff6527
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