Open LucaMarconato opened 1 month ago
@LucaMarconato I feel like this also has to do with https://github.com/scverse/spatialdata-plot/issues/296 and might be solved with https://github.com/scverse/spatialdata-plot/pull/309 since with that version of the code everything runs for me.
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?
I checked, the extent of the plot is correct. I think that the datashader plot has been made against the original non-transformed coordinates.
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
sdata['cell_circles'] = sd.transform(sdata['cell_circles'], to_coordinate_system='global')
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.
The Squidpy notebook shows an error liked to rasterizatation. @Sonja-Stockhaus could you please have a look at it? Thanks 😊
This is part of the log: