Skip to content

docs: add datashader reductions example - #21

Open
timtreis wants to merge 1 commit into
mainfrom
feat/datashader-reductions
Open

docs: add datashader reductions example#21
timtreis wants to merge 1 commit into
mainfrom
feat/datashader-reductions

Conversation

@timtreis

Copy link
Copy Markdown
Member

Summary

Adds examples/datashader_reductions.ipynb documenting datashader_reduction= — how the datashader backend combines a continuous colour when primitives share a pixel. Real Xenium cells (squidpy.datasets.cells()).

Covers:

  • why a reduction is needed (default max)
  • datashader_reduction: max vs mean vs sum (the colorbar scale differs), plus count and std
  • method="datashader" for large images (morphology_focus)
  • the datashader contrast caveat (contrast follows the aggregate range, not norm percentiles)

Extends the datashader story from the performance tutorial (which only shows the backend on/off toggle). 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 (P0.4).

New examples/datashader_reductions.ipynb explaining how the datashader
backend aggregates a continuous colour when primitives share a pixel, on the
real Xenium cells dataset (squidpy):

- why a reduction is needed (default max)
- datashader_reduction: max vs mean vs sum (colorbar scale differs), plus
  count and std
- method='datashader' for large images (morphology_focus)
- the datashader contrast caveat (aggregate range, not norm percentiles)

Executed against spatialdata-plot v0.4.1; committed with outputs. Adds the
examples gallery card + toctree + thumbnail. Closes P0.4 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-21/gallery.html

Built from 1102f28; 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