@@ -223,7 +223,7 @@ def bottleneck_matching(dgm1, dgm2, matching, labels=["dgm1", "dgm2"], ax=None):
223
223
if i == - 1 :
224
224
diagElem = np .array ([dgm2Rot [j , 0 ], 0 ])
225
225
diagElem = diagElem .dot (R .T )
226
- plt .plot ([dgm2 [j , 0 ], diagElem [0 ]], [dgm2 [j , 1 ], diagElem [1 ]], c , linewidth = linewidth , linestyle = linestyle )
226
+ ax .plot ([dgm2 [j , 0 ], diagElem [0 ]], [dgm2 [j , 1 ], diagElem [1 ]], c , linewidth = linewidth , linestyle = linestyle )
227
227
elif j == - 1 :
228
228
diagElem = np .array ([dgm1Rot [i , 0 ], 0 ])
229
229
diagElem = diagElem .dot (R .T )
@@ -277,7 +277,7 @@ def wasserstein_matching(dgm1, dgm2, matching, labels=["dgm1", "dgm2"], ax=None)
277
277
if i == - 1 :
278
278
diagElem = np .array ([dgm2Rot [j , 0 ], 0 ])
279
279
diagElem = diagElem .dot (R .T )
280
- plt .plot ([dgm2 [j , 0 ], diagElem [0 ]], [dgm2 [j , 1 ], diagElem [1 ]], "g" )
280
+ ax .plot ([dgm2 [j , 0 ], diagElem [0 ]], [dgm2 [j , 1 ], diagElem [1 ]], "g" )
281
281
elif j == - 1 :
282
282
diagElem = np .array ([dgm1Rot [i , 0 ], 0 ])
283
283
diagElem = diagElem .dot (R .T )
0 commit comments