From 84b6ec07d804658841a53bb219bfa5f2283fc6f7 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Fri, 2 Dec 2022 21:07:42 -0500 Subject: [PATCH] Use index (time) step to calc OHLC bar/line uppx threshold --- piker/ui/_render.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/piker/ui/_render.py b/piker/ui/_render.py index ab07237e..9fb1592e 100644 --- a/piker/ui/_render.py +++ b/piker/ui/_render.py @@ -138,7 +138,7 @@ def render_baritems( # - if we're **not** downsampling then we simply want to # render the bars graphics curve and update.. # - if instead we are in a downsamplig state then we to - x_gt = 6 + x_gt = 6 * (r.fmtr.index_step_size or 1) uppx = curve.x_uppx() # print(f'BARS UPPX: {uppx}') in_line = should_line = curve.isVisible()