Skip to content

Commit c33e413

Browse files
committed
Add shape and label styling tutorial
New tutorials/styling_shapes_and_labels.ipynb covering the fill/outline styling surface of render_shapes and render_labels on the blobs dataset: - fill_alpha for both shapes and labels - the outline bool toggle (restored for shapes and labels in #750) with outline_width / outline_color / outline_alpha - hollow shapes (transparent fill + outline) - scale for resizing shape geometries about their centroids - segmentation boundaries on labels via outline + contour_px, and the translucent-fill-plus-outline overlay over an image Executed against spatialdata-plot v0.4.1; committed with outputs. Adds the gallery card + toctree entry and a thumbnail. Deliberately leaves color=/ palette/groups to the colour tutorial and points styling to as_points.
1 parent 9482378 commit c33e413

3 files changed

Lines changed: 608 additions & 0 deletions

File tree

260 KB
Loading

‎tutorials/index.md‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,16 @@ Add a physical scalebar with `scalebar_dx`, choose units, and style
5454
placement, colour, length and fonts through `scalebar_params`.
5555
:::
5656

57+
:::{grid-item-card} Styling shapes and labels
58+
:link: /notebooks/tutorials/styling_shapes_and_labels
59+
:link-type: doc
60+
:img-top: /notebooks/_static/img/styling_shapes_and_labels.png
61+
62+
Control how shapes and labels are drawn: `fill_alpha`, the `outline`
63+
toggle with `outline_width`/`outline_color`/`outline_alpha`, hollow
64+
shapes, `scale`, and segmentation boundaries via `contour_px`.
65+
:::
66+
5767
::::
5868
<!-- gallery-cards-end -->
5969

@@ -66,4 +76,5 @@ color_and_palette
6676
multi_panel_color
6777
performance
6878
scalebars
79+
styling_shapes_and_labels
6980
```

0 commit comments

Comments
 (0)