MCPcopy Create free account
hub / github.com/DeepLabCut/DeepLabCut / display_traces

Method display_traces

deeplabcut/gui/tracklet_toolbox.py:762–776  ·  view source on GitHub ↗
(self, only_picked=True)

Source from the content-addressed store, hash-verified

760 trail.set_data([], [])
761
762 def display_traces(self, only_picked=True):
763 if only_picked:
764 inds = self.picked + list(self.picked_pair)
765 else:
766 inds = self.manager.swapping_bodyparts
767 for n, (line_x, line_y) in enumerate(zip(self.lines_x, self.lines_y, strict=False)):
768 if n in inds:
769 line_x.set_data(self.manager.times, self.manager.xy[n, :, 0])
770 line_y.set_data(self.manager.times, self.manager.xy[n, :, 1])
771 else:
772 line_x.set_data([], [])
773 line_y.set_data([], [])
774 for ax in self.ax2, self.ax3:
775 ax.relim()
776 ax.autoscale_view()
777
778 def display_help(self, event):
779 if not self.help_text:

Callers 8

_prepare_canvasMethod · 0.95
swap_trackletsMethod · 0.95
swapMethod · 0.95
invertMethod · 0.95
on_pickMethod · 0.95
on_clickMethod · 0.95
on_selectMethod · 0.80
disconnectMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected