Skip to content

Custom site hover texts in pmv.structure_(2|3)d_plotly #228

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 6 commits into from
Oct 9, 2024

Conversation

janosh
Copy link
Owner

@janosh janosh commented Oct 9, 2024

No description provided.

@janosh janosh added enhancement Improvement to existing features/functionality plotly Concerning plotly-powered functions structure Structure viz related labels Oct 9, 2024
@janosh janosh enabled auto-merge (squash) October 9, 2024 13:31
@janosh janosh merged commit b8e0fc4 into main Oct 9, 2024
25 checks passed
@janosh janosh deleted the plotly-struct-viz-custom-site-hover-text branch October 9, 2024 13:33
janosh added a commit that referenced this pull request Mar 28, 2025
* add structure_viz/helpers.py get_site_hover_text

* test_get_site_hover_text

* structure_(2|3)d_plotly add kwarg hover_text: Literal["cartesian", "fractional", "cartesian+fractional"]
    | Callable[[Structure, int], str] = "cartesian+fractional"

* test_hover_text in tests/structure_viz/test_plotly.py

* define SiteCoords enum

* refactor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improvement to existing features/functionality plotly Concerning plotly-powered functions structure Structure viz related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant