scverse / spatialdata

An open and interoperable data framework for spatial omics data
https://spatialdata.scverse.org/
BSD 3-Clause "New" or "Revised" License
219 stars 42 forks source link

Is there currently a way to plot 3D data? #708

Open Marius1311 opened 2 weeks ago

Marius1311 commented 2 weeks ago

I'm looking for even just the simplest case, i.e. fixing a z-location and visualizing x, y coordinates in 2D. I tried naively with spatialdata-plot, i.e. just

sdata.pl.render_images("image", channel="DAPI").pl.show(), but that fails with TypeError: Invalid shape (7, 9512, 9788) for image data.

melonora commented 1 day ago

Hi @Marius1311, currently that is not supported yet, but this is not hard to implement. I had some other priorities, but can pick this up. Sorry for the late reply!

Marius1311 commented 16 hours ago

Amazing, thanks! would be great to have this.