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

Can we improve the plotly mouseover tooltips for resolution? #2655

Open
dagewa opened this issue Apr 25, 2024 · 3 comments
Open

Can we improve the plotly mouseover tooltips for resolution? #2655

dagewa opened this issue Apr 25, 2024 · 3 comments

Comments

@dagewa
Copy link
Member

dagewa commented Apr 25, 2024

A source of some annoyance is the fact that the resolution tooltips on plots like the below (white-on-grey text) are in reciprocal units ($d^{\star 2}$), whereas the axis has values printed in Å. Perhaps we have not looked hard enough before whether it is possible to override this. I got this request from Harry, who also pointed out it would be nice if the values could be rounded to 2 d.p. He also pointed out that very weirdly the lowest resolution value appears to actually be in Å (see his second screenshot)!

image
image

@dagewa
Copy link
Member Author

dagewa commented Apr 25, 2024

@dagewa
Copy link
Member Author

dagewa commented Apr 25, 2024

Many examples here of advanced tooltips https://plotly.com/python/hover-text-and-formatting/

@jbeilstenedmands
Copy link
Contributor

We already do this kind of thing in the xia2.multiplex.html report for the I/sigma vs batch plot in 'analysis by image number' and possibly other places, so worth looking at that code.
Agreed this has always been annoying for the CC1/2 plot!

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