Skip to content

flodr.viz

Every plotting function takes ax=None (a new axes) and returns the axes. See Visualisation.

plot_embedding(
Y, labels=None, values=None, ax=None, colours=None, cmap="viridis",
norm=None, s=None, order="random", crop=(1, 99), text=None,
)
plot_frontier(results, styles=None, ax=None, xlabel="recall@15", ylabel="CPD")
plot_ranks(ranks, ax=None, colours=None, margin=0.1, alpha=0.05)
plot_paths(
Y, paths, labels=None, colours=None, ends=None, far=None, highlight=None,
ax=None, crop=(1, 99),
)
plot_band(
lo, hi, mean, near=None, far=None, label=None, ax=None,
colours=("#DCD3DC", "#AA4499", "#2E8B7A"),
)
plot_audit(res, axes=None, size=3.0, s=None, vmax=None, show_labels=True)
frame(ax, Y, crop=(1, 99), pad=0.03)
palette(labels)
save(fig, path, dpi=300)
FunctionDraws
plot_embeddinga map coloured by label (colours: label to colour) or by value; order="high" draws high values last
plot_frontierper method the mean and sd of (recalls, cpds); styles: method to (colour, marker)
plot_ranksthe empirical law of certificate ranks against the diagonal, with the DKW band and the margin
plot_pathspaths over a map; ends names their ends, far dashes steps far from the training points
plot_banda value decoded along a path, with its band
plot_auditthe result of flodr.audit: the labels and the hidden information
palettea colour per label, tab10 for up to ten labels, else tab20
framesets a square 1:1 window around the map
savesaves with tight bounds

RC is a matplotlib style for screen figures.