Persistence graphical tools user manual¶
Definition¶
|
|
|
||||||
|
Numpy |
![]() |
These graphical tools comes on top of persistence results and allows the user to build easily barcode and persistence diagram. |
Persistence graphical tools user manual | Persistence graphical tools reference manual |
Show palette values¶
This function is useful to show the color palette values of dimension:
import gudhi
gudhi.show_palette_values(alpha=1.0)

Show persistence as a barcode¶
This function can display the persistence result as a barcode:
import gudhi
periodic_cc = gudhi.PeriodicCubicalComplex(perseus_file='3d_torus.txt')
diag = periodic_cc.persistence()
gudhi.plot_persistence_barcode(diag)

Show persistence as a diagram¶
This function can display the persistence result as a diagram:
import gudhi
rips_complex = gudhi.RipsComplex(off_file='tore3D_300.off', max_edge_length=2.0)
simplex_tree = rips_complex.create_simplex_tree(max_dimension=3)
diag = simplex_tree.persistence()
gudhi.plot_persistence_diagram(diag)
