Always draw any history bars on update

bar_select
Tyler Goodlet 2020-09-11 12:25:06 -04:00
parent a4a5bff3fa
commit e91ba55d68
1 changed files with 2 additions and 1 deletions

View File

@ -286,6 +286,7 @@ class BarItems(pg.GraphicsObject):
) -> None: ) -> None:
super().__init__() super().__init__()
self.last = QtGui.QPicture() self.last = QtGui.QPicture()
# self.buffer = QtGui.QPicture()
self.history = QtGui.QPicture() self.history = QtGui.QPicture()
# TODO: implement updateable pixmap solution # TODO: implement updateable pixmap solution
self._pi = plotitem self._pi = plotitem
@ -400,8 +401,8 @@ class BarItems(pg.GraphicsObject):
self.index += bars_added self.index += bars_added
# start_bar_to_update = index - bars_added # start_bar_to_update = index - bars_added
self.draw_lines(just_history=True)
if just_history: if just_history:
self.draw_lines(just_history=True) # istart=self.index - 1)
return return
# current bar update # current bar update