steenroder.plot_diagrams
- steenroder.plot_diagrams(barcode, steenrod_barcode, k=None, kind=None, tex=False, plotly_params=None)[source]
Plot a regular persistence barcode and a Steenrod barcode as diagrams on a common birth-death plane.
- Parameters
barcode (list of ndarray) – The persistence barcode to plot. For each dimension
d, a 2D array with 2 columns, containing birth-death pairs in degreed, to be used as coordinates in the two-dimensional plot.steenrod_barcode (list of ndarray) – The (relative) Sq^k-barcode to plot. For each dimension
d, a 2D array with 2 columns, containing the birth-death pairs of Steenrod bars in degreed, to be used as coordinates in the two-dimensional plot.k (int or None, optional, default:
None) – Positive integer defining the cohomology operation Sq^k that was performed to obtain steenrod_barcode. Only used for labelling.kind (
"R"|"A"or None, optional, default:None) – Whether the barcodes to be plotted come from absolute or relative cohomology barcodes.tex (bool, optional, default:
False) – (Experimental!) Whether to display a version of the legend rendered with LaTeX and MathJax.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 theupdate_tracesandupdate_layoutmethods ofplotly.graph_objects.Figure.
- Returns
fig – Figure representing the persistence diagram and Steenrod diagram.
- Return type
plotly.graph_objects.Figureobject