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

Static plotting for spatialdata

Results 139 spatialdata-plot issues
Sort by recently updated
recently updated
newest added
trafficstars

Sometimes we don't want a colorbar (or a specific colorbar for an element). A feature to add would be to allow to disable specific colobars. I suggest to add a...

```python ## from spatialdata.datasets import blobs import spatialdata_plot import matplotlib.pyplot as plt sdata = blobs() sdata['blobs_polygons']['column'] = 0 ( sdata.pl.render_images('blobs_image') .pl.render_shapes('blobs_circles', color='radius') .pl.render_shapes('blobs_polygons', color='column') .pl.show() ) plt.show() ``` gives ![image](https://github.com/user-attachments/assets/773c7312-148e-4e38-94d3-62ee8cd18732)...

:speaking_head: discussion

I used the example data from spatialdata.scverse.org(xenium_rep1_io) and plot py render_shapes. The plot color fill by na_color. My code is here: `from spatialdata import bounding_box_query sdata = sd.read_zarr("./data.zarr") crop0 =...

It may be related to this other bug: https://github.com/scverse/spatialdata-plot/issues/68 ```python from spatialdata.datasets import blobs_annotating_element import spatialdata_plot import matplotlib.pyplot as plt axes = plt.subplots(1, 2)[1] sdata = blobs_annotating_element("blobs_circles") sdata.pl.render_images("blobs_image").pl.render_shapes("blobs_circles", color="radius").pl.show(ax=axes[0]) sdata.pl.render_images("blobs_image").pl.render_shapes("blobs_circles",...

bug

Weird bug, low-ish priority. The code "circled" in green in this screenshot seem to have no effect. In fact check this: ![image](https://github.com/user-attachments/assets/10446da5-4a1d-4f5d-b800-186163a103bf) While if I commend the red code: ![image](https://github.com/user-attachments/assets/06602c54-92b0-42f0-a838-f28e070fe1ec)...

bug
priority: low

~Quite high priority because it's blocking before making a release.~ Not blocking a release, the bug was present before and occurred if running `.sample()` twice. I replaced the `.pp.get_elements()` method...

While improving the Visium HD notebook after https://github.com/scverse/spatialdata-plot/issues/303 has been addressed I have noticed that there must be a problem with interpolations of images when the target canvas is small,...

should also respect upper/under attributes of cbar and maybe draw triangles? ![Image](https://github.com/user-attachments/assets/7035bdd8-8ab5-43d0-8e08-790fbe1d89a2) See `extend` parameter [here](https://matplotlib.org/stable/api/colorbar_api.html)

enhancement
priority: low

updates: - [github.com/astral-sh/ruff-pre-commit: v0.11.9 → v0.11.10](https://github.com/astral-sh/ruff-pre-commit/compare/v0.11.9...v0.11.10)

Code which previously failed now generates the expected results: ``` import spatialdata import spatialdata_plot sdata = spatialdata.datasets.blobs() # add some labelling we want to color with a custom defined palette...