docs: add cropping tutorial (crop_coord) - #25
Merged
Conversation
|
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
|
📖 Docs preview: https://scverse.org/spatialdata-plot-tutorials/pr-25/gallery.html Built from c8ac090; redeployed on every push. |
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
…lease Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011JMbY8asahxaytthjvCKDv
timtreis
force-pushed
the
feat/cropping-tutorial
branch
from
August 27, 2026 13:50
0e37c0f to
3905336
Compare
…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
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011JMbY8asahxaytthjvCKDv
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
tutorials/cropping.ipynb— a standalone tutorial forshow(crop_coord=...)(spatialdata-plot#765), onblobs:crop_coord=(xmin, xmax, ymin, ymax)on an image, with the box drawn on the full viewnormcrop_coordvsbounding_box_query— view vs data subsetAdds the gallery card + toctree entry in
tutorials/index.mdand the thumbnail_static/img/cropping.png.Notes
0.4.2.dev11; CIexecuteneeds the spatialdata-plot 0.4.2 release (crop_coordis not in 0.4.1). Pin bump to follow once released.docs/notebookssubmodule and cross-links the tutorial from thecrop_coorddocstring.🤖 Generated with Claude Code
https://claude.ai/code/session_011JMbY8asahxaytthjvCKDv