persim.bottleneck_matching

persim.bottleneck_matching(I1, I2, matchidx, D, labels=['dgm1', 'dgm2'], ax=None)[source]

Visualize bottleneck matching between two diagrams

Parameters:
  • I1 (array) – A diagram
  • I2 (array) – A diagram
  • matchidx (tuples of matched indices) – if input matching=True, then return matching
  • D (array) – cross-similarity matrix
  • labels (list of strings) – names of diagrams for legend. Default = [“dgm1”, “dgm2”],
  • ax (matplotlib Axis object) – For plotting on a particular axis.