diff options
author | ROUVREAU Vincent <vincent.rouvreau@inria.fr> | 2021-06-15 18:32:33 +0200 |
---|---|---|
committer | ROUVREAU Vincent <vincent.rouvreau@inria.fr> | 2021-06-15 18:32:33 +0200 |
commit | 2eb2f96248f09e5c793760cfb44ce7b1a40c1af4 (patch) | |
tree | c488a2772b5c6935b090a8e288364c7fc12bcda8 | |
parent | 8587b70b268aaf7be2ab5b0e163d43f5587b0aac (diff) |
Ignore figure as not used on default subplot
-rw-r--r-- | src/python/gudhi/persistence_graphical_tools.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/python/gudhi/persistence_graphical_tools.py b/src/python/gudhi/persistence_graphical_tools.py index 460029fb..b129b375 100644 --- a/src/python/gudhi/persistence_graphical_tools.py +++ b/src/python/gudhi/persistence_graphical_tools.py @@ -168,7 +168,7 @@ def plot_persistence_barcode( if colormap == None: colormap = plt.cm.Set1.colors if axes == None: - fig, axes = plt.subplots(1, 1) + _, axes = plt.subplots(1, 1) persistence = sorted(persistence, key=lambda birth: birth[1][0]) @@ -307,7 +307,7 @@ def plot_persistence_diagram( if colormap == None: colormap = plt.cm.Set1.colors if axes == None: - fig, axes = plt.subplots(1, 1) + _, axes = plt.subplots(1, 1) (min_birth, max_death) = __min_birth_max_death(persistence, band) delta = (max_death - min_birth) * inf_delta @@ -487,7 +487,7 @@ def plot_persistence_density( if cmap is None: cmap = plt.cm.hot_r if axes == None: - fig, axes = plt.subplots(1, 1) + _, axes = plt.subplots(1, 1) # line display of equation : birth = death x = np.linspace(death.min(), birth.max(), 1000) |