Offset last (live) datum from y-axis by a 16th

history_view
Tyler Goodlet 2022-09-11 17:33:22 -04:00
parent ead426abc4
commit f7c0ee930a
1 changed files with 6 additions and 2 deletions

View File

@ -1060,10 +1060,14 @@ async def display_symbol_data(
hist_linked.graphics_cycle() hist_linked.graphics_cycle()
await trio.sleep(0) await trio.sleep(0)
bars_in_mem = int(len(hist_ohlcv.array))
hist_chart.default_view( hist_chart.default_view(
bars_from_y=int(len(hist_ohlcv.array)), # size to data bars_from_y=bars_in_mem, # size to data
y_offset=6116*2, # push it a little away from the y-axis # push it 1/16th away from the y-axis
y_offset=round(bars_in_mem / 16),
) )
rt_linked.set_split_sizes()
# let the app run.. bby # let the app run.. bby
await trio.sleep_forever() await trio.sleep_forever()