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 mx = ymax
return 0, mx 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 # TODO: fix the x-axis label issue where if you put
# the axis on the left it's totally not lined up... # the axis on the left it's totally not lined up...
@ -776,12 +775,16 @@ async def open_vlm_displays(
) -> None: ) -> None:
for name in names: for name in names:
render = False
if 'dark' in name: if 'dark' in name:
color = dark_vlm_color color = dark_vlm_color
elif 'rate' in name: elif 'rate' in name:
color = vlm_color color = vlm_color
else: else:
color = 'bracket' color = 'bracket'
render = True
curve, _ = chart.draw_curve( curve, _ = chart.draw_curve(
name=name, name=name,
@ -799,6 +802,7 @@ async def open_vlm_displays(
# since only a placeholder of `None` is entered in # since only a placeholder of `None` is entered in
# ``.draw_curve()``. # ``.draw_curve()``.
flow = chart._flows[name] flow = chart._flows[name]
# flow.render = render
assert flow.plot is pi assert flow.plot is pi
chart_curves( chart_curves(

View File

@ -923,6 +923,7 @@ class ChartView(ViewBox):
# XXX: super important to be aware of this. # XXX: super important to be aware of this.
# or not flow.graphics.isVisible() # or not flow.graphics.isVisible()
): ):
# print(f'skipping {flow.name}')
continue continue
# pass in no array which will read and render from the last # pass in no array which will read and render from the last