Visualisation
flodr.viz draws the plots of the FloDR paper. Every function takes an ax (one is created when it is None) and
returns it; maps are square boxes at 1:1 data scale.
from flodr import viz
viz.plot_embedding(Y, labels) # a map coloured by labelviz.plot_embedding(Y, values=depth, cmap="magma") # or by a value per pointviz.plot_frontier({"FloDR": (recalls, cpds), "UMAP": (r2, c2)}) # local against globalviz.plot_ranks([cert["fibre"]["ranks"], cert["map"]["ranks"]]) # a certificateviz.plot_paths(Y, [path], labels=labels) # paths over the mapviz.plot_band(bands["lo"][:, g], bands["hi"][:, g], mean) # a value decoded along a pathviz.plot_audit(res) # hidden informationviz.save(fig, "figure.pdf")viz.RC is a matplotlib style for screen figures: plt.rcParams.update(viz.RC).

plot_frontier in the benchmark. The figures in these pages come from the examples,
which use flodr.viz throughout.