You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Error in Squidpy notebook due to rasterization not handling transformations聽#291
I just tried: the error disappeared and the plot is fast! There is still a problem with the lims as I get this plot
Can you have a look at it as part of the PR please?
assign the correct coordinate transformations to the image element returned by the internal datashader functions
ensure that the resolution of the image computed by datashader is computed from the combination of:
figure DPI
figure size
eventually the range given by get_extent()
and not by the min/max computed from the original data. Probably this is already the case in the implementation, but better to double check.
changed the title [-]Error in Squidpy notebook due to rasterization[/-][+]Error in Squidpy notebook due to rasterization not handling transformations[/+]on Sep 8, 2024
Activity
Sonja-Stockhaus commentedon Jul 17, 2024
@LucaMarconato I feel like this also has to do with #296 and might be solved with #309 since with that version of the code everything runs for me.
LucaMarconato commentedon Aug 1, 2024
I just tried: the error disappeared and the plot is fast! There is still a problem with the lims as I get this plot

Can you have a look at it as part of the PR please?
LucaMarconato commentedon Aug 9, 2024
I checked, the extent of the plot is correct. I think that the datashader plot has been made against the original non-transformed coordinates.
LucaMarconato commentedon Aug 9, 2024
I confirm that my claim seems to be indeed the source of the issue, in fact a workaround that fixes the plot is to call
before making the plot.
I think that a solution is to:
get_extent()and not by the min/max computed from the original data. Probably this is already the case in the implementation, but better to double check.
[-]Error in Squidpy notebook due to rasterization[/-][+]Error in Squidpy notebook due to rasterization not handling transformations[/+]LucaMarconato commentedon Jan 5, 2025
Fixed by #378