[Enhancement] Sunburst plots of coordination numbers and environments #135
Labels
enhancement
Improvement to existing features/functionality
plotly
Concerning plotly-powered functions
symmetry
Spacegroup and other symmetry related plots
Hi,
thank you for this amazing repository!
I have code for sunburst plots of coordination number and environment distributions within a dataset and was wondering if you are interested in adding that to pymatviz.
For example, the figure above shows the CN (inner ring) and CE (outer ring) distribution of all elemental carbon structures in the MaterialsProject. The CEs are encoded as in the ChemEnv module of pymatgen.
The code could be structured similar to your
spacegroup_sunburst()
function and either accept a sequence of coordination environments OR Structure objects and a neighbor determination algorithm and its parameters. In pymatgen, the CEs as encoded above are currently only available from ChemEnv strategies, but I'm working on the inclusion of other neighbor determination algorithms from the localenv module.Also, this CN and CE sunburst function would have some normalization bool parameter (whether to set the sum of all CEs within a structure to 1 to avoid overrepresentation of larger structures or whether absolute occurrences are counted).
Let me know what you think!
The text was updated successfully, but these errors were encountered: