MCPcopy Index your code
hub / github.com/DeepLabCut/DeepLabCut / plot

Method plot

deeplabcut/refine_training_dataset/stitch.py:401–412  ·  view source on GitHub ↗
(self, centroid_only=True, color=None, ax=None, interactive=False)

Source from the content-addressed store, hash-verified

399 return np.argmin(diff > tol)
400
401 def plot(self, centroid_only=True, color=None, ax=None, interactive=False):
402 if ax is None:
403 fig, ax = plt.subplots()
404 centroid = np.full((self.end + 1, 2), np.nan)
405 centroid[self.inds] = self.centroid
406 lines = ax.plot(centroid, c=color, lw=2, picker=interactive)
407 if not centroid_only:
408 xy = np.full((self.end + 1, self.xy.shape[1], 2), np.nan)
409 xy[self.inds] = self.xy
410 ax.plot(xy[..., 0], c=color, lw=1)
411 ax.plot(xy[..., 1], c=color, lw=1)
412 return lines
413
414
415class TrackletStitcher:

Callers 10

CreateVideoSlowFunction · 0.80
PlottingResultsFunction · 0.80
make_labeled_imageFunction · 0.80
_prepare_canvasMethod · 0.80
plot_pathsMethod · 0.80
plot_tracksMethod · 0.80
plot_trackletsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected