Skip to content

Commit 7c25d40

Browse files
timtreisclaude
andcommitted
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
1 parent c3ae9ba commit 7c25d40

3 files changed

Lines changed: 402 additions & 0 deletions

File tree

‎_static/img/cropping.png‎

416 KB
Loading

‎tutorials/cropping.ipynb‎

Lines changed: 391 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
@@ -73,6 +73,16 @@ Draw circle elements as circles, hexagons, or squares with `shape=`, and
7373
render Visium spots as a hex grid with `shape="visium_hex"`.
7474
:::
7575

76+
:::{grid-item-card} Cropping a plot
77+
:link: /notebooks/tutorials/cropping
78+
:link-type: doc
79+
:img-top: /notebooks/_static/img/cropping.png
80+
81+
Zoom into a bounding box with `crop_coord` — every layer windowed at draw
82+
time, images rasterized for the window only, and how it differs from
83+
`bounding_box_query`.
84+
:::
85+
7686
::::
7787
<!-- gallery-cards-end -->
7888

@@ -87,4 +97,5 @@ performance
8797
as_points
8898
scalebars
8999
marker_shapes
100+
cropping
90101
```

0 commit comments

Comments
 (0)