summaryrefslogtreecommitdiff
path: root/src/cython/example/gudhi_graphical_tools_example.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/cython/example/gudhi_graphical_tools_example.py')
-rwxr-xr-xsrc/cython/example/gudhi_graphical_tools_example.py12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/cython/example/gudhi_graphical_tools_example.py b/src/cython/example/gudhi_graphical_tools_example.py
index 4f64c615..3b0ca54d 100755
--- a/src/cython/example/gudhi_graphical_tools_example.py
+++ b/src/cython/example/gudhi_graphical_tools_example.py
@@ -19,9 +19,15 @@ __license__ = "MIT"
print("#####################################################################")
print("Show barcode persistence example")
-persistence = [(2, (1.0, float('inf'))), (1, (1.4142135623730951, float('inf'))),
- (1, (1.4142135623730951, float('inf'))), (0, (0.0, float('inf'))),
- (0, (0.0, 1.0)), (0, (0.0, 1.0)), (0, (0.0, 1.0))]
+persistence = [
+ (2, (1.0, float("inf"))),
+ (1, (1.4142135623730951, float("inf"))),
+ (1, (1.4142135623730951, float("inf"))),
+ (0, (0.0, float("inf"))),
+ (0, (0.0, 1.0)),
+ (0, (0.0, 1.0)),
+ (0, (0.0, 1.0)),
+]
gudhi.plot_persistence_barcode(persistence)
print("#####################################################################")