https://github.com/scverse/spatialdata-plot
Static plotting for spatialdata
https://github.com/scverse/spatialdata-plot
Last synced: 2 months ago
JSON representation
Static plotting for spatialdata
- Host: GitHub
- URL: https://github.com/scverse/spatialdata-plot
- Owner: scverse
- License: bsd-3-clause
- Created: 2023-01-12T16:07:53.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2026-03-27T20:19:04.000Z (2 months ago)
- Last Synced: 2026-03-27T22:51:13.924Z (2 months ago)
- Language: Python
- Size: 69.2 MB
- Stars: 76
- Watchers: 8
- Forks: 18
- Open Issues: 61
-
Metadata Files:
- Readme: README.md
- Contributing: docs/contributing.md
- License: LICENSE
Awesome Lists containing this project
README

# spatialdata-plot: rich static plotting from SpatialData objects
[![Tests][badge-tests]][link-tests]
[![Documentation][badge-docs]][link-docs]
[![Codecov][badge-codecov]][link-codecov]
[![Documentation][badge-pypi]][link-pypi]
[](https://anaconda.org/conda-forge/spatialdata-plot)
[](https://zenodo.org/badge/latestdoi/588223127)
[badge-tests]: https://img.shields.io/github/actions/workflow/status/scverse/spatialdata-plot/test.yaml?branch=main
[link-tests]: https://github.com/scverse/spatialdata-plot/actions/workflows/test.yml
[badge-docs]: https://img.shields.io/readthedocs/spatialdata-plot
[badge-codecov]: https://codecov.io/gh/scverse/spatialdata-plot/branch/main/graph/badge.svg?token=C45F3ATSVI
[link-codecov]: https://app.codecov.io/gh/scverse/spatialdata-plot
[badge-pypi]: https://badge.fury.io/py/spatialdata_plot.svg
[link-pypi]: https://pypi.org/project/spatialdata-plot/
The `spatialdata-plot` package extends `spatialdata` with a declarative plotting API that enables to quickly visualize `spatialdata` objects and their respective elements (i.e. `images`, `labels`, `points` and `shapes`).
SpatialData’s plotting capabilities allow to quickly visualise all contained modalities.
The user can specify which elements should be rendered (images, labels, points, shapes) and specify certain parameters for each layer, such as for example the intent to color shapes by a gene’s expression profile or which color to use for which image channel.
When the plot is then eventually displayed, all transformations, alignments and coordinate systems are internally processed to form the final visualisation.
In concordance with the general SpatialData philosophy, all modalities of the major spatial technologies are supported out of the box.

## Getting started
For more information on the `spatialdata-plot` library, please refer to the [documentation](https://spatialdata.scverse.org/projects/plot/en/latest/index.html). In particular, the
- [API documentation][link-api].
- [Example notebooks][link-notebooks] (section "Visiualizations")
## Installation
You need to have Python 3.10 or newer installed on your system. If you don't have
Python installed, we recommend installing [Mambaforge](https://github.com/conda-forge/miniforge#mambaforge).
There are several alternative options to install spatialdata-plot:
1. Install the latest release of `spatialdata-plot` from `PyPI `\_:
```bash
pip install spatialdata-plot
```
2. Install the latest development version:
```bash
pip install git+https://github.com/scverse/spatialdata-plot.git@main
```
## Contact
For questions and help requests, you can reach out in the [scverse discourse][scverse-discourse].
If you found a bug, please use the [issue tracker][issue-tracker].
## Citation
Marconato, L., Palla, G., Yamauchi, K.A. et al. SpatialData: an open and universal data framework for spatial omics. Nat Methods (2024). https://doi.org/10.1038/s41592-024-02212-x
[scverse-discourse]: https://discourse.scverse.org/
[issue-tracker]: https://github.com/scverse/spatialdata-plot/issues
[link-docs]: https://spatialdata-plot.readthedocs.io
[link-api]: https://spatialdata.scverse.org/projects/plot/en/stable/api.html
[link-design-doc]: https://spatialdata.scverse.org/en/stable/design_doc.html
[link-notebooks]: https://spatialdata.scverse.org/en/stable/tutorials/notebooks/notebooks.html
[//]: # "numfocus-fiscal-sponsor-attribution"
spatialdata-plot is part of the scverse® project ([website](https://scverse.org), [governance](https://scverse.org/about/roles)) and is fiscally sponsored by [NumFOCUS](https://numfocus.org/).
If you like scverse® and want to support our mission, please consider making a tax-deductible [donation](https://numfocus.org/donate-to-scverse) to help the project pay for developer time, professional services, travel, workshops, and a variety of other needs.