summaryrefslogtreecommitdiff
path: root/cython/doc/pyplots/barcode_persistence.py
diff options
context:
space:
mode:
authorGard Spreemann <gspreemann@gmail.com>2017-04-20 11:15:58 +0200
committerGard Spreemann <gspreemann@gmail.com>2017-04-20 11:15:58 +0200
commiteadd3e18b55fc3b7a7d0420015902df2d58dcea5 (patch)
treece025060ea9045415b1f738886c8c70ed32218e8 /cython/doc/pyplots/barcode_persistence.py
parent5638527781e1d8cd916cd28f9d375eef7b5d820b (diff)
parent8d7329f3e5ad843e553c3c5503cecc28ef2eead6 (diff)
Merge tag 'upstream/2.0.0' into dfsg/latest
Upstream's 2.0.0 release.
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)