plot_betti_curves

gtda.plotting.plot_betti_curves(betti_numbers, samplings, homology_dimensions=None, plotly_params=None)[source]

Plot Betti curves by homology dimension.

Parameters
  • betti_numbers (ndarray of shape (n_homology_dimensions, n_bins)) – Betti numbers, i.e. the y-coordinates of Betti curves. Entry i along axis 0 is assumed to contain the Betti numbers for a discretised Betti curve in homology dimension i.

  • samplings (ndarray of shape (n_homology_dimensions, n_bins)) – Filtration parameter values to be used as the x-coordinates of the Betti curves.

  • homology_dimensions (list, tuple or None, optional, default: None) – Which homology dimensions to include in the plot. If None, all available homology dimensions will be used.

  • plotly_params (dict or None, optional, default: None) – Custom parameters to configure the plotly figure. Allowed keys are "traces" and "layout", and the corresponding values should be dictionaries containing keyword arguments as would be fed to the update_traces and update_layout methods of plotly.graph_objects.Figure.

Returns

fig – Figure representing the Betti curves.

Return type

plotly.graph_objects.Figure object