Persistence graphical tools reference manual

gudhi.__min_birth_max_death()

This function returns (min_birth, max_death) from the persistence.

Parameters:
  • persistence (list of tuples(dimension, tuple(birth, death)).) – The persistence to plot.
  • band_boot (float.) – bootstrap band
Returns:

(float, float) – (min_birth, max_death).

gudhi.show_palette_values()

This function shows palette color values in function of the dimension.

Parameters:alpha (float.) – alpha value in [0.0, 1.0] for horizontal bars (default is 0.6).
Returns:plot the dimension palette values.
gudhi.plot_persistence_barcode()

This function plots the persistence bar code.

Parameters:
  • persistence (list of tuples(dimension, tuple(birth, death)).) – The persistence to plot.
  • persistence_file (string) – A persistence file style name (reset persistence if both are set).
  • alpha (float.) – alpha value in [0.0, 1.0] for horizontal bars (default is 0.6).
  • max_barcodes (int.) – number of maximal barcodes to be displayed (persistence will be sorted by life time if max_barcodes is set)
Returns:

plot – An horizontal bar plot of persistence.

gudhi.plot_persistence_diagram()

This function plots the persistence diagram with an optional confidence band.

Parameters:
  • persistence (list of tuples(dimension, tuple(birth, death)).) – The persistence to plot.
  • persistence_file (string) – A persistence file style name (reset persistence if both are set).
  • alpha (float.) – alpha value in [0.0, 1.0] for points and horizontal infinity line (default is 0.6).
  • band_boot (float.) – bootstrap band (not displayed if \(\leq\) 0.)
  • max_plots (int.) – number of maximal plots to be displayed
Returns:

plot – A diagram plot of persistence.