|
Topological Material Analysis 0.5
Analyse the structures of materials using tools from TDA
|
Functions | |
| plot_APF (np.array APF, str name) | |
| Plot an accumulated persistence function. | |
| plot_APFs (list APFs, list APF_names, str fig_name) | |
| Plot a set accumulated persistence function, with automatic colour differentiation. | |
| plot_PD (dgm, str name) | |
| Plot a persistence diagram, with a specific colour. | |
| plot_PDs (dgms, str name) | |
| Plot several persistence diagrams, with automatic colour choices. | |
| plot_kernel_image_cokernel_PD (kicr, int d, bool codomain, bool kernel, bool image, bool cokernel, str name) | |
| Plot kernel, image, cokernel on same figure. | |
| generate_plots () | |
| Generate plots for a single configuration. | |
| plots.generate_plots | ( | ) |
Generate plots for a single configuration.
Generate plots for a single configuration
This function generates persistence diagrams and APF plots for a single configuration. It creates empty lists to store the plots, then populates them based on enabled options.
The following plots can be generated:
The plots are stored in st.session_state for later display.
| plots.plot_APF | ( | np.array | APF, |
| str | name ) |
Plot an accumulated persistence function.
| APF | - np.array with 2 columns of coordinates which define the APF |
| name | - title for the plot |
| plots.plot_APFs | ( | list | APFs, |
| list | APF_names, | ||
| str | fig_name ) |
Plot a set accumulated persistence function, with automatic colour differentiation.
| APFs | - accumlated persistence functions to plot |
| plots.plot_kernel_image_cokernel_PD | ( | kicr, | |
| int | d, | ||
| bool | codomain, | ||
| bool | kernel, | ||
| bool | image, | ||
| bool | cokernel, | ||
| str | name ) |
Plot kernel, image, cokernel on same figure.
| kicr | oineus::KerImCokReduced |
| d | the dimension to extract (either 1 or 2) |
| kernel | bool to plot kernel |
| image | bool to plot image |
| cokernel | bool to plot cokernel |
| plots.plot_PD | ( | dgm, | |
| str | name ) |
Plot a persistence diagram, with a specific colour.
Points at infinity are plotted at a height of 1.1 times the last finite point to die.
| dgm | - pandas.DataFrame of the diagram |
| name | - name to use as title of the plot |
| plots.plot_PDs | ( | dgms, | |
| str | name ) |
Plot several persistence diagrams, with automatic colour choices.
Points at infinity are plotted at a height of 1.1 times the last finite point to die.
| dgms | - list of diagrams |
| name | - title to use for the plot |
@results a plotly.express figure