Skip to content

Add element color schemes alloys #255

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 7 commits into from
Nov 29, 2024
Merged

Add element color schemes alloys #255

merged 7 commits into from
Nov 29, 2024

Conversation

janosh
Copy link
Owner

@janosh janosh commented Nov 29, 2024

tries to maximize contrast between metal elements at the expense of others where necessary

also allow ptable_heatmap_splits_plotly keyword colorscale to be Callable to compare different element color scheme in a split periodic table
ptable-heatmap-splits-plotly-2-color-schemes
ptable-heatmap-splits-plotly-3-color-schemes

add unit test for callable colorscale in ptable_heatmap_splits_plotly
as pymatviz.colors.ELEM_COLORS_ALLOY
add tests/test_colors.py with unit tests for color schemes
…compare element color schemes

add ptable-heatmap-splits-plotly-(2|3)-color-schemes.svg
@janosh janosh added enhancement Improvement to existing features/functionality plotly Concerning plotly-powered functions colors Color schemes labels Nov 29, 2024
@janosh janosh merged commit d6f6bef into main Nov 29, 2024
50 checks passed
@janosh janosh deleted the alloy-colors branch November 29, 2024 17:52
janosh added a commit that referenced this pull request Mar 28, 2025
* allow callable colorscale in ptable_heatmap_splits_plotly

add unit test for callable colorscale in ptable_heatmap_splits_plotly

* add new custom element color scheme ALLOY

as pymatviz.colors.ELEM_COLORS_ALLOY
add tests/test_colors.py with unit tests for color schemes

* add ptable_heatmap_splits_plotly example with callable colorscale to compare element color schemes

add ptable-heatmap-splits-plotly-(2|3)-color-schemes.svg

* revert REF_IMPORT_TIME to before accidental lowering of thresholds

* fix mypy

* fix tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
colors Color schemes enhancement Improvement to existing features/functionality plotly Concerning plotly-powered functions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant