(
within,
between,
nbins=51,
kde=True,
colors=None,
ax=None,
)
| 415 | |
| 416 | |
| 417 | def _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 | |
| 437 | def plot_edge_affinity_distributions( |
no outgoing calls
no test coverage detected