Registry / ai-ml / spatialdata-plot

spatialdata-plot

JSON →
library0.4.0pypypi✓ verified 84d ago

Static plotting for spatial data, part of scverse. Current version 0.4.0, requires Python >=3.11. Release cadence is irregular.

pip install spatialdata-plot
INSTALL
IMPORT
SIG · SPATIALDATA-PLOT
S
spatialdata-plot
ai-mlpythonv0.4.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

SpatialData
from spatialdata import SpatialData
import spatialdata as sd
SpatialData is the class, sd is commonly used as a module alias

Basic rendering of a SpatialData object using the .pl accessor.

from spatialdata import SpatialData import spatialdata_plot # Create a SpatialData object with sample data sdata = SpatialData.from_squidpy("adata", "dummy") sdata.pl.render()
Debug
Known issues
breakingspatialdata-plot 0.4.0 drops support for Python <3.11.
fix
Use Python >=3.11.
affects: 0.4.0+
deprecatedThe plot() function on sdata is deprecated; use sdata.pl.render() instead.
fix
Replace sdata.plot() with sdata.pl.render()
affects: 0.3.x-0.4.0
gotchaspatialdata-plot must be imported before calling .pl methods; otherwise AttributeError occurs.
fix
Always import spatialdata_plot after spatialdata before using .pl.
affects: all
Errors
Common errors & fixes
AttributeError: 'SpatialData' object has no attribute 'pl'
spatialdata-plot not imported or installed.
fix
Run 'pip install spatialdata-plot' and add 'import spatialdata_plot' to your script.
ImportError: cannot import name 'SpatialData' from 'spatialdata'
Outdated spatialdata library (<0.4.0) that doesn't export SpatialData.
fix
Upgrade spatialdata: pip install --upgrade spatialdata
Upgrade
Version history
0.4.0latest on PyPI · released May 27, 2026
Audit
Dependencies
spatialdatarequiredCore data structure
matplotlibrequiredRendering engine
Agent activity
20 hits · last 30 days
node
18
OpenAI (training)
1
Resources
spatialdata-plot — pip install spatialdata-plot · libregistry