Skip to content

Fix missing keys Te + Nd in ELEM_COLORS_VESTA and support it in plot_structure_2d #173

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
Jul 6, 2024

Conversation

janosh
Copy link
Owner

@janosh janosh commented Jul 6, 2024

plot_structure_2d's colors deprecated, renamed to elem_colors. use fallback color "gray" if no color specified for element symbol in chosen color palette

also many new attributes in Key enum

janosh added 5 commits July 6, 2024 12:44
new categories DFT + ML split out of comp details

kew attrs in:
Structural
Composition and Chemical
Thermodynamic
Electronic
Mechanical
Thermal
Optical
Surface
Defect
Magnetic
Computational Details
checks for colors in kwargs and assigns that to elem_colors, then issues warning
@janosh janosh added matplotlib Concerning matplotlib-powered functions breaking Breaking changes structure Structure viz related colors Color schemes labels Jul 6, 2024
@janosh janosh temporarily deployed to github-pages July 6, 2024 19:11 — with GitHub Actions Inactive
@janosh janosh temporarily deployed to github-pages July 6, 2024 20:34 — with GitHub Actions Inactive
@janosh janosh temporarily deployed to github-pages July 6, 2024 20:43 — with GitHub Actions Inactive
@janosh janosh enabled auto-merge (squash) July 6, 2024 22:19
@janosh janosh temporarily deployed to github-pages July 6, 2024 22:20 — with GitHub Actions Inactive
…one"

tests/ptable/test_ptable_matplotlib.py:178:
@janosh janosh temporarily deployed to github-pages July 6, 2024 22:56 — with GitHub Actions Inactive
@janosh janosh merged commit 460ebde into main Jul 6, 2024
7 checks passed
@janosh janosh deleted the more-enum-keys branch July 6, 2024 22:58
@janosh janosh removed the breaking Breaking changes label Jul 7, 2024
janosh added a commit that referenced this pull request Mar 28, 2025
… `plot_structure_2d` (#173)

* new attributes in Key enum

new categories DFT + ML split out of comp details

kew attrs in:
Structural
Composition and Chemical
Thermodynamic
Electronic
Mechanical
Thermal
Optical
Surface
Defect
Magnetic
Computational Details

* fix ELEM_COLORS_VESTA add missing elements Te and Nd

* use gray as fallback element color if no color is specified and issue UserWarning (with test)

* plot_structure_2d add support for ElemColorScheme.vesta

* deprecate plot_structure_2d's colors keyword renamed to elem_colors

checks for colors in kwargs and assigns that to elem_colors, then issues warning

* fix SyntaxError: f-string expression part cannot include a backslash

* split ptable module by backend into matplotlib and much smaller plotly

* update readme

* improve ptable_heatmap_plotly test coverage

* improve test_ptable_heatmap_plotly_kwarg_combos
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
colors Color schemes matplotlib Concerning matplotlib-powered functions structure Structure viz related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant