Skip to content

Commit 6826510

Browse files
timtreisclaude
andauthored
docs: add cropping tutorial (crop_coord) (#25)
* docs: add cropping tutorial (crop_coord) 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 * build: require spatialdata-plot>=0.4.2, re-execute cropping on the release Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011JMbY8asahxaytthjvCKDv * docs(cropping): switch to the Xenium cells dataset, show the zoom explicitly 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 * docs(cropping): keep the crop box, drop the connector lines 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>
1 parent 6cf6c7b commit 6826510

3 files changed

Lines changed: 511 additions & 0 deletions

File tree

‎_static/img/cropping.png‎

556 KB
Loading

‎tutorials/cropping.ipynb‎

Lines changed: 500 additions & 0 deletions
Large diffs are not rendered by default.

‎tutorials/index.md‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,16 @@ composite them with per-channel `palette` LUTs, fix heavy-tailed contrast
8383
per channel, and label the composite with `channels_as_legend`.
8484
:::
8585

86+
:::{grid-item-card} Cropping a plot
87+
:link: /notebooks/tutorials/cropping
88+
:link-type: doc
89+
:img-top: /notebooks/_static/img/cropping.png
90+
91+
Zoom into a bounding box with `crop_coord` — every layer windowed at draw
92+
time, images rasterized for the window only, and how it differs from
93+
`bounding_box_query`.
94+
:::
95+
8696
::::
8797
<!-- gallery-cards-end -->
8898

@@ -98,4 +108,5 @@ as_points
98108
scalebars
99109
marker_shapes
100110
multichannel_images
111+
cropping
101112
```

0 commit comments

Comments
 (0)