Drop cache reset from `Curve.draw_last_datum()`

update_last_datums_in_view
Tyler Goodlet 2022-06-09 16:38:04 -04:00
parent 3074773662
commit da5dea9f99
1 changed files with 10 additions and 10 deletions

View File

@ -379,17 +379,17 @@ class Curve(pg.GraphicsObject):
) -> None:
# default line draw last call
with self.reset_cache():
x = render_data['index']
y = render_data[array_key]
# with self.reset_cache():
x = render_data['index']
y = render_data[array_key]
# draw the "current" step graphic segment so it
# lines up with the "middle" of the current
# (OHLC) sample.
self._last_line = QLineF(
x[-2], y[-2],
x[-1], y[-1],
)
# draw the "current" step graphic segment so it
# lines up with the "middle" of the current
# (OHLC) sample.
self._last_line = QLineF(
x[-2], y[-2],
x[-1], y[-1],
)
return x, y