spatialdata-plot icon indicating copy to clipboard operation
spatialdata-plot copied to clipboard

ValueError: Transformation to global not found in element

Open sunshx-bioinfo opened this issue 1 year ago • 5 comments

Hi, I get an error when I use spatialdata==0.3.0 and spatialdata-plot==0.2.9 to plot Shapes with method=="datashader", but method=="matplotlib" is ok! Here is my code:

Image

I don't know whether it's a bug for latest version.

sunshx-bioinfo avatar Jan 22 '25 07:01 sunshx-bioinfo

Hi @sunshx-bioinfo, you can pass coordinate_systems='pixel' to pl.show(), which should address your issue; but I agree, the default behavior with a single coordinate system should to use the only available one. CC @timtreis

LucaMarconato avatar Jan 22 '25 10:01 LucaMarconato

Hi, i tried it, but it didn't work.

---- Replied Message ---- | From | @.> | | Date | 01/22/2025 18:05 | | To | @.> | | Cc | @.>@.> | | Subject | Re: [scverse/spatialdata-plot] ValueError: Transformation to global not found in element (Issue #410) |

Hi @sunshx-bioinfo, you can pass coordinate_systems='pixel' to pl.show(), which should address your issue; but I agree, the default behavior with a single coordinate system should to use the only available one. CC @timtreis

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

sunshx-bioinfo avatar Jan 22 '25 10:01 sunshx-bioinfo

Which error did you get? Please try also with coordinate_systems=['pixel'].

LucaMarconato avatar Jan 22 '25 12:01 LucaMarconato

Hi,there isn't 'pixel' in my 'coordinate systems', it's 'pixels' :

Image

Image

so i passed coordinate_systems=='pixels' and coordinate_systems==['pixels'] to pl.show(), but both of them didn't work, the error is same as before:

Image

sunshx-bioinfo avatar Jan 23 '25 01:01 sunshx-bioinfo

Thanks for sharing the extra details. CC @timtreis

LucaMarconato avatar Jan 23 '25 14:01 LucaMarconato