summaryrefslogtreecommitdiff
path: root/cython/doc/pyplots/diagram_persistence.py
diff options
context:
space:
mode:
Diffstat (limited to 'cython/doc/pyplots/diagram_persistence.py')
-rwxr-xr-xcython/doc/pyplots/diagram_persistence.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/cython/doc/pyplots/diagram_persistence.py b/cython/doc/pyplots/diagram_persistence.py
index b4714fe3..c2fbf801 100755
--- a/cython/doc/pyplots/diagram_persistence.py
+++ b/cython/doc/pyplots/diagram_persistence.py
@@ -1,5 +1,8 @@
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=gudhi.__root_source_dir__ + \
+ '/data/points/tore3D_1307.off', max_edge_length=0.2)
+simplex_tree = rips_complex.create_simplex_tree(max_dimension=3)
+diag = simplex_tree.persistence()
+plt = gudhi.plot_persistence_diagram(diag, band_boot=0.13)
+plt.show()