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

Function _plot_paf_performance

deeplabcut/utils/plotting.py:417–434  ·  view source on GitHub ↗
(
    within,
    between,
    nbins=51,
    kde=True,
    colors=None,
    ax=None,
)

Source from the content-addressed store, hash-verified

415
416
417def _plot_paf_performance(
418 within,
419 between,
420 nbins=51,
421 kde=True,
422 colors=None,
423 ax=None,
424):
425 import seaborn as sns
426
427 bins = np.linspace(0, 1, nbins)
428 if colors is None:
429 colors = "#EFC9AF", "#1F8AC0"
430 if ax is None:
431 fig, ax = plt.subplots(tight_layout=True, figsize=(3, 3))
432 sns.histplot(within, kde=kde, ax=ax, stat="probability", color=colors[0], bins=bins)
433 sns.histplot(between, kde=kde, ax=ax, stat="probability", color=colors[1], bins=bins)
434 return ax
435
436
437def plot_edge_affinity_distributions(

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected