Play with render skip logic on non-dark vlm crypto feeds

mxmn_from_m4
Tyler Goodlet 2022-06-26 10:42:00 -04:00
parent 783914c7fe
commit a425c29ef1
2 changed files with 7 additions and 2 deletions

View File

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

View File

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