Skip to content

docs: add colouring points example - #20

Open
timtreis wants to merge 1 commit into
mainfrom
feat/colouring-points
Open

docs: add colouring points example#20
timtreis wants to merge 1 commit 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:

  • 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 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

Copy link
Copy Markdown

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

Built from d972756; redeployed on every push.

github-actions Bot pushed a commit that referenced this pull request Aug 18, 2026
Sign up for free to 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