summaryrefslogtreecommitdiff
path: root/src/cython/doc/pyplots/diagram_persistence.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/cython/doc/pyplots/diagram_persistence.py')
-rwxr-xr-xsrc/cython/doc/pyplots/diagram_persistence.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/cython/doc/pyplots/diagram_persistence.py b/src/cython/doc/pyplots/diagram_persistence.py
index b4714fe3..56d6c50f 100755
--- a/src/cython/doc/pyplots/diagram_persistence.py
+++ b/src/cython/doc/pyplots/diagram_persistence.py
@@ -1,5 +1,7 @@
import gudhi
-alpha_complex = gudhi.AlphaComplex(off_file='../tore3D_300.off')
-diag = alpha_complex.persistence()
-gudhi.plot_persistence_diagram(diag)
+rips_complex = gudhi.RipsComplex(off_file='tore3D_1307.off', max_edge_length=0.2)
+simplex_tree = rips_complex.create_simplex_tree(max_dimension=3)
+diag = simplex_tree.persistence()
+pplot = gudhi.plot_persistence_diagram(diag, band_boot=0.13)
+pplot.show()