@@ -217,9 +217,9 @@ def bottleneck_matching(I1, I2, matchidx, D, labels=["dgm1", "dgm2"], ax=None):
217
217
elif j >= I2 .shape [0 ]:
218
218
diagElem = np .array ([I1Rot [i , 0 ], 0 ])
219
219
diagElem = diagElem .dot (R .T )
220
- plt .plot ([I1 [i , 0 ], diagElem [0 ]], [I1 [i , 1 ], diagElem [1 ]], "g" )
220
+ ax .plot ([I1 [i , 0 ], diagElem [0 ]], [I1 [i , 1 ], diagElem [1 ]], "g" )
221
221
else :
222
- plt .plot ([I1 [i , 0 ], I2 [j , 0 ]], [I1 [i , 1 ], I2 [j , 1 ]], "g" )
222
+ ax .plot ([I1 [i , 0 ], I2 [j , 0 ]], [I1 [i , 1 ], I2 [j , 1 ]], "g" )
223
223
224
224
225
225
def wasserstein_matching (I1 , I2 , matchidx , palette = None , labels = ["dgm1" , "dgm2" ], colors = None , ax = None ):
@@ -267,8 +267,8 @@ def wasserstein_matching(I1, I2, matchidx, palette=None, labels=["dgm1", "dgm2"]
267
267
elif j >= I2 .shape [0 ]:
268
268
diagElem = np .array ([I1Rot [i , 0 ], 0 ])
269
269
diagElem = diagElem .dot (R .T )
270
- plt .plot ([I1 [i , 0 ], diagElem [0 ]], [I1 [i , 1 ], diagElem [1 ]], "g" )
270
+ ax .plot ([I1 [i , 0 ], diagElem [0 ]], [I1 [i , 1 ], diagElem [1 ]], "g" )
271
271
else :
272
- plt .plot ([I1 [i , 0 ], I2 [j , 0 ]], [I1 [i , 1 ], I2 [j , 1 ]], "g" )
272
+ ax .plot ([I1 [i , 0 ], I2 [j , 0 ]], [I1 [i , 1 ], I2 [j , 1 ]], "g" )
273
273
274
274
plot_diagrams ([I1 , I2 ], labels = labels , ax = ax )
0 commit comments