plotly.py icon indicating copy to clipboard operation
plotly.py copied to clipboard

Heatmap using `px.imshow` stops rendering fully after seemingly arbitrary number of elements from a pandas dataframe

Open matt-sd-watson opened this issue 1 year ago • 1 comments

I have a heatmap based on px.imshow in my dash application that renders a dataframe of expression values. Currently, the visualization works fine if the number of dataframe rows is 65000 or less:

Screenshot from 2024-01-17 15-08-39

However, as soon as I increase the number of dataframe rows ever so slightly to 66000, the heatmap no longer actually shows the values and just returns a partially blank graph:

Screenshot from 2024-01-17 15-06-16

Additional implementation details:

  • this applies for data import as well as changing the number of data frame rows in the application interactively using a callback

The heatmap is rendered in a dcc.Graph component that itself is contained in a dbc.Col of width 6 with the following parameters:

dcc.Graph(id="quantification-heatmap-full",
                                    figure={'layout': dict(xaxis_showgrid=False, autosize=False,
                                    yaxis_showgrid=False, xaxis=XAxis(showticklabels=False),
                                    yaxis=YAxis(showticklabels=False), margin=dict(l=5, r=5, b=15,
                                    t=20, pad=0))}, responsive=False),

matt-sd-watson avatar Jan 18 '24 15:01 matt-sd-watson

Thanks for reporting this issue, @matt-sd-watson Do you mind sharing with us MRE so we can reproduce this error locally?

Coding-with-Adam avatar Jan 18 '24 16:01 Coding-with-Adam

Hi - we are tidying up stale issues and PRs in Plotly's public repositories so that we can focus on things that are still important to our community. Since this one has been sitting for a while, I'm going to close it; if it is still a concern, please add a comment letting us know what recent version of our software you've checked it with so that I can reopen it and add it to our backlog. If you'd like to submit a PR, we'd be happy to prioritize a review, and if it's a request for tech support, please post in our community forum. Thank you - @gvwilson

gvwilson avatar Jul 11 '24 22:07 gvwilson