Skip to content
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

How to retrieve the plotly Figure of a Structure? #245

Closed
sgbaird opened this issue Jun 14, 2022 · 1 comment
Closed

How to retrieve the plotly Figure of a Structure? #245

sgbaird opened this issue Jun 14, 2022 · 1 comment

Comments

@sgbaird
Copy link

sgbaird commented Jun 14, 2022

The visualizations via crystaltoolkit are great. Where is the function that takes a structure as input (along with some kwargs) and returns the plotly Figure? Had some trouble finding it. Maybe I came across it but didn't realize it (e.g. renderables.structure). Interested in the context of janosh/pymatviz#41

@mkhorton
Copy link
Member

Hi @sgbaird,

It doesn't return a Plotly Figure, we have our own customer renderer for Structure objects (which is why they look so nice! 😁).

Currently, a get_scene() object is patched onto the relevant object, e.g. Structure.get_scene() when Crystal Toolkit is imported. See #76 for more discussion of this.

Will close this issue but feel free to re-open if there are further questions. Also, if you are interested in Crystal Toolkit development personally, a manuscript has been drafted but not yet submitted, so we are still in a place where we can add people to the development team if there is a specific contribution planned and started -- I left an announcement up in the README.md for this repo if interested.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants