diff options
author | vrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb> | 2017-08-21 14:25:24 +0000 |
---|---|---|
committer | vrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb> | 2017-08-21 14:25:24 +0000 |
commit | 5f82230750f45e348fb1eee9c45b84710b669c38 (patch) | |
tree | aeda306bcc15138ba9275c32131604c99475520a /src/cython/example/euclidean_strong_witness_complex_diagram_persistence_from_off_file_example.py | |
parent | 6166aad3e082119ead02413659cfb6ea2e661ef7 (diff) | |
parent | ef36c8b63bc353ac9d4e6982b9bba6797d546e51 (diff) |
Merge persistence diagram improvement branch
git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/trunk@2614 636b058d-ea47-450e-bf9e-a15bfbe3eedb
Former-commit-id: eaccfe6c60c4a05bbec173a1042db7ad490a9f37
Diffstat (limited to 'src/cython/example/euclidean_strong_witness_complex_diagram_persistence_from_off_file_example.py')
-rwxr-xr-x | src/cython/example/euclidean_strong_witness_complex_diagram_persistence_from_off_file_example.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/cython/example/euclidean_strong_witness_complex_diagram_persistence_from_off_file_example.py b/src/cython/example/euclidean_strong_witness_complex_diagram_persistence_from_off_file_example.py index 2371c36c..e3f362dc 100755 --- a/src/cython/example/euclidean_strong_witness_complex_diagram_persistence_from_off_file_example.py +++ b/src/cython/example/euclidean_strong_witness_complex_diagram_persistence_from_off_file_example.py @@ -40,6 +40,7 @@ parser.add_argument("-f", "--file", type=str, required=True) parser.add_argument("-a", "--max_alpha_square", type=float, required=True) parser.add_argument("-n", "--number_of_landmarks", type=int, required=True) parser.add_argument("-d", "--limit_dimension", type=int, required=True) +parser.add_argument("-b", "--band_boot", type=float, default=0.) parser.add_argument('--no-diagram', default=False, action='store_true' , help='Flag for not to display the diagrams') args = parser.parse_args() @@ -70,8 +71,8 @@ with open(args.file, 'r') as f: print(simplex_tree.betti_numbers()) if args.no_diagram == False: - gudhi.plot_persistence_diagram(diag) - + pplot = gudhi.plot_persistence_diagram(diag, band_boot=args.band_boot) + pplot.show() else: print(args.file, "is not a valid OFF file") |