Skip to content

docs: add colouring points example - #20

Merged
timtreis merged 2 commits into
mainfrom
feat/colouring-points
Aug 19, 2026
Merged

docs: add colouring points example#20
timtreis merged 2 commits into
mainfrom
feat/colouring-points

Conversation

@timtreis

Copy link
Copy Markdown
Member

Summary

Adds examples/colouring_points.ipynb — point colouring was previously only shown as color='genes', size=. Real Xenium cells transcripts (squidpy.datasets.cells()).

Covers:

  • continuouscolor= with a colorbar; cmap and norm to shape the mapping
  • categoricalcolor= with a legend; palette, groups, and na_color
  • size and alpha
  • uses the matplotlib backend for per-point colour (datashader auto-engages at scale and doesn't preserve per-point colours the same way); cross-links the density and performance notebooks

Executed against spatialdata-plot v0.4.1, committed with outputs. Adds the examples gallery card + toctree + thumbnail.

Part of the documentation-expansion series from the 0.4.0/0.4.1 gap analysis (P2.1).

New examples/colouring_points.ipynb covering render_points colour control on
the real Xenium cells transcripts (squidpy):
- continuous color= with a colorbar; cmap and norm to shape the mapping
- categorical color= with a legend; palette, groups, and na_color
- size and alpha
- uses the matplotlib backend for per-point colour (datashader/density noted
for scale, cross-linked to the density and performance notebooks)
Executed against spatialdata-plot v0.4.1; committed with outputs. Adds the
examples gallery card + toctree + thumbnail. Closes P2.1 of the doc-coverage
analysis.
@review-notebook-app

Copy link
Copy Markdown

Check out this pull request on ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@github-actions

github-actionsBot commented Aug 18, 2026

Copy link
Copy Markdown

📖 Docs preview: https://scverse.org/spatialdata-plot-tutorials/pr-20/gallery.html

Built from dc89b67; redeployed on every push.

github-actionsBot pushed a commit that referenced this pull request Aug 18, 2026
…olor-hides-unmatched rule, concrete 10k datashader threshold
github-actionsBot pushed a commit that referenced this pull request Aug 19, 2026
@timtreis
timtreis merged commit c3ae9ba into mainAug 19, 2026
4 checks passed
@timtreis
timtreis deleted the feat/colouring-points branch August 19, 2026 14:37
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@timtreis