Skip to content

Commit

Permalink
Fix RuntimeError: x must be a sequence (#137)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeylau authored Jun 12, 2024
1 parent 06960c0 commit 4ef3ed2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/napari_deeplabcut/_widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ def _refresh_canvas(self, value):
end = min(value + self._window // 2, len(self.df))

self.ax.set_xlim(start, end)
self.vline.set_xdata(value)
self.vline.set_xdata([value])
self.canvas.draw()

def set_window(self, value):
Expand Down

0 comments on commit 4ef3ed2

Please sign in to comment.