Plotting Helpers#

Optinionated helper to produce plots.

Mostly meant to be used in the context of the revalidation of the mobgap algorithms.

blandaltman_stats(reference, detected[, x_val])

Calculate the Bland-Altman statistics.

plot_blandaltman_annotations(error[, ax, ...])

Add annotations (mean and confidence interval) to a blandaltman style plot.

plot_regline(x, y, ax)

Plot a regression line using seaborn's regplot and add the equation to the plot as legend.

calc_min_max_with_margin(*data[, margin])

Calculate the min and max values of one or multiple datasets.

make_square(ax, min_max[, draw_diagonal])

Apply axes settings to make a plot square for a correlation plot.

move_legend_outside(fig, ax[, position, padding])

Move the legend from the axes to the figure and place it outside the plot.

residual_plot(data, reference, detected, ...)

Create residual plots for method comparison using a Bland-Altman style analysis.