docs: add shape and label styling tutorial - #16
Open
timtreis wants to merge 2 commits into
Open
Conversation
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.
|
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-16/gallery.html Built from 67c103d; redeployed on every push. |
…erlay demo go below default, drop internal jargon
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/styling_shapes_and_labels.ipynb— the styling counterpart to the colour tutorial. Wherecolor_and_palettecovers what colour an element gets, this covers how it is drawn.Covers the fill/outline surface of
render_shapesandrender_labelson theblobsdataset:fill_alpha— fill opacity, for both shapes and labelsoutlinebool toggle (restored for shapes and labels in #750) withoutline_width/outline_color/outline_alphascale— resizing shape geometries about their centroidsoutline+contour_px, and the translucent-fill-plus-outline overlay over an imageExecuted against spatialdata-plot v0.4.1, committed with outputs. Adds the gallery card + toctree entry and a 552×496 thumbnail.
Scope: deliberately leaves
color=/palette/groupsto the colour tutorial and points styling to theas_pointstutorial (#15), to avoid overlap.Part of the 0.4.1 feature-tutorial series (after multi-panel colour #14 and normalization #9).