summaryrefslogtreecommitdiff
path: root/cython/doc/pyplots/barcode_persistence.py
diff options
context:
space:
mode:
Diffstat (limited to 'cython/doc/pyplots/barcode_persistence.py')
-rwxr-xr-xcython/doc/pyplots/barcode_persistence.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/cython/doc/pyplots/barcode_persistence.py b/cython/doc/pyplots/barcode_persistence.py
new file mode 100755
index 00000000..c06ac5a7
--- /dev/null
+++ b/cython/doc/pyplots/barcode_persistence.py
@@ -0,0 +1,5 @@
+import gudhi
+
+periodic_cc = gudhi.PeriodicCubicalComplex(perseus_file='../3d_torus.txt')
+diag = periodic_cc.persistence()
+gudhi.plot_persistence_barcode(diag)