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.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/cython/doc/pyplots/diagram_persistence.py b/cython/doc/pyplots/diagram_persistence.py
new file mode 100755
index 00000000..b4714fe3
--- /dev/null
+++ b/cython/doc/pyplots/diagram_persistence.py
@@ -0,0 +1,5 @@
+import gudhi
+
+alpha_complex = gudhi.AlphaComplex(off_file='../tore3D_300.off')
+diag = alpha_complex.persistence()
+gudhi.plot_persistence_diagram(diag)