We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ff3f017 commit e49c07cCopy full SHA for e49c07c
1 file changed
ripser/ripser.py
@@ -25,16 +25,12 @@
25
from itertools import cycle
26
import warnings
27
28
-import matplotlib.pyplot as plt
29
-import matplotlib as mpl
30
from scipy import sparse
31
32
import numpy as np
33
from sklearn.base import TransformerMixin
34
from sklearn.metrics.pairwise import pairwise_distances
35
36
-import persim
37
-
38
from pyRipser import doRipsFiltrationDM as DRFDM
39
from pyRipser import doRipsFiltrationDMSparse as DRFDMSparse
40
@@ -640,6 +636,9 @@ def plot(
640
636
If you are using self.plot() as part of a subplot,
641
637
set show=False and call plt.show() only once at the end.
642
638
"""
639
+ import matplotlib.pyplot as plt
+ import matplotlib as mpl
+ import persim
643
644
if diagrams is None:
645
# Allow using transformed diagrams as default
0 commit comments