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

Option to compress numpy array in hovertemplate customdata for px.imshow #5003

Open
matt-sd-watson opened this issue Jan 31, 2025 · 1 comment
Labels
feature something new P3 backlog

Comments

@matt-sd-watson
Copy link

Our application enables the generation of multiplexed images, where image regions show multiple "markers" in a tissue sample to demonstrate spatial patterns of marker co-occurrence.

We enable users to toggle a custom hovertemplate that shows the underlying raw array values for each marker before they are converted to RGB:

Image

However, this becomes noticeably slower as the number of markers grows linearly; we pass the customdata template as a stacked numpy array paired with custom hovertext.

An option to compress this template array would help in increasing the speed and effectiveness of using customdata for our hovertemplate

@gvwilson gvwilson added feature something new P3 backlog labels Feb 3, 2025
@gvwilson
Copy link
Contributor

gvwilson commented Feb 3, 2025

Thanks for the suggestion @matt-sd-watson - I'll add it to our backlog, but realistically we're not going to get to it any time soon :-(. If you or someone else would like to put together a PR, we can try to prioritize review. Thanks - @gvwilson

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

No branches or pull requests

2 participants