spatialdata-plot
spatialdata-plot copied to clipboard
Static plotting for spatialdata
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 ...
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",...
Weird bug, low-ish priority. The code "circled" in green in this screenshot seem to have no effect. In fact check this:  While if I commend the red code: ...
~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?  See `extend` parameter [here](https://matplotlib.org/stable/api/colorbar_api.html)
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)
fix #464
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...