Skip to content

docs: add cropping tutorial (crop_coord) - #25

Merged
timtreis merged 4 commits into
mainfrom
feat/cropping-tutorial
Aug 27, 2026
Merged

docs: add cropping tutorial (crop_coord)#25
timtreis merged 4 commits into
mainfrom
feat/cropping-tutorial

Conversation

@timtreis

Copy link
Copy Markdown
Member

Summary

Adds tutorials/cropping.ipynb — a standalone tutorial for show(crop_coord=...) (spatialdata-plot#765), on blobs:

  1. crop_coord=(xmin, xmax, ymin, ymax) on an image, with the box drawn on the full view
  2. one window for every layer — image + labels + shapes + points in one chain
  3. keeping colours comparable: points/shapes keep the full-element range, image contrast rescales to the window → pin with norm
  4. crop_coord vs bounding_box_query — view vs data subset
  5. single-coordinate-system requirement

Adds the gallery card + toctree entry in tutorials/index.md and the thumbnail _static/img/cropping.png.

Notes

  • Executed locally against 0.4.2.dev11; CI execute needs the spatialdata-plot 0.4.2 release (crop_coord is not in 0.4.1). Pin bump to follow once released.
  • Companion spatialdata-plot PR bumps the docs/notebooks submodule and cross-links the tutorial from the crop_coord docstring.

🤖 Generated with Claude Code

https://claude.ai/code/session_011JMbY8asahxaytthjvCKDv

@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-actions Bot commented Aug 27, 2026

Copy link
Copy Markdown

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

Built from c8ac090; redeployed on every push.

github-actions Bot pushed a commit that referenced this pull request Aug 27, 2026
github-actions Bot pushed a commit that referenced this pull request Aug 27, 2026
timtreis and others added 2 commits August 27, 2026 15:49
Covers crop_coord on images, layered composites, colour-range behaviour
under cropping, the contrast fix via norm, and crop_coord vs
bounding_box_query. Runs on blobs. Needs spatialdata-plot>=0.4.2.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011JMbY8asahxaytthjvCKDv
…licitly

Real tissue instead of blobs; box + connector lines mark the crop in
section 1 and the thumbnail; contrast section uses a dim window so the
window-vs-full stretch is visible.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011JMbY8asahxaytthjvCKDv
github-actions Bot pushed a commit that referenced this pull request Aug 27, 2026
github-actions Bot pushed a commit that referenced this pull request Aug 27, 2026
@timtreis
timtreis merged commit 6826510 into main Aug 27, 2026
4 checks passed
@timtreis
timtreis deleted the feat/cropping-tutorial branch August 27, 2026 14:23
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