summaryrefslogtreecommitdiff
path: root/cython/doc/pyplots/barcode_persistence.py
diff options
context:
space:
mode:
authorGard Spreemann <gspreemann@gmail.com>2017-10-09 10:49:16 +0200
committerGard Spreemann <gspreemann@gmail.com>2017-10-09 10:49:16 +0200
commit45e3a8bfb4fbf73ab9a093fa12816dbe0591e606 (patch)
treec484e1832e483cd605062b33574d27c62040db4d /cython/doc/pyplots/barcode_persistence.py
parentbb096655608534feb76f275960fe85cefe08c5f0 (diff)
parent673b6bb63befd7e591e52c13f43e5db53e5b29bd (diff)
Merge branch 'dfsg/latest' into debian/sid
Diffstat (limited to 'cython/doc/pyplots/barcode_persistence.py')
-rwxr-xr-xcython/doc/pyplots/barcode_persistence.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/cython/doc/pyplots/barcode_persistence.py b/cython/doc/pyplots/barcode_persistence.py
index c06ac5a7..de33d506 100755
--- a/cython/doc/pyplots/barcode_persistence.py
+++ b/cython/doc/pyplots/barcode_persistence.py
@@ -1,5 +1,7 @@
import gudhi
-periodic_cc = gudhi.PeriodicCubicalComplex(perseus_file='../3d_torus.txt')
+periodic_cc = gudhi.PeriodicCubicalComplex(perseus_file=gudhi.__root_source_dir__ + \
+ '/data/bitmap/3d_torus.txt')
diag = periodic_cc.persistence()
-gudhi.plot_persistence_barcode(diag)
+plt = gudhi.plot_persistence_barcode(diag)
+plt.show()