Skip to content

Commit

Permalink
Play with render skip logic on non-dark vlm crypto feeds
Browse files Browse the repository at this point in the history
  • Loading branch information
goodboy committed Jun 26, 2022
1 parent 3b7b4cd commit 39d1c6c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
8 changes: 6 additions & 2 deletions piker/ui/_fsp.py
Original file line number Diff line number Diff line change
Expand Up @@ -650,8 +650,7 @@ def multi_maxmin(
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...
Expand Down Expand Up @@ -776,12 +775,16 @@ def chart_curves(

) -> 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,
Expand All @@ -799,6 +802,7 @@ def chart_curves(
# 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(
Expand Down
1 change: 1 addition & 0 deletions piker/ui/_interaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -923,6 +923,7 @@ def maybe_downsample_graphics(
# 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
Expand Down

0 comments on commit 39d1c6c

Please sign in to comment.