Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/execute.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ jobs:
else
nbs=$(find tutorials examples -name "*.ipynb" -not -path "*/.ipynb_checkpoints/*" 2>/dev/null || true)
fi
# Notebooks whose datasets are too large for CI (multi-GB downloads):
# their committed outputs are trusted and never re-executed here.
nbs=$(printf '%s\n' "$nbs" | grep -vxF 'tutorials/as_points.ipynb' || true)
if [ -z "$nbs" ]; then
echo "No notebooks to execute."
else
Expand Down
Binary file added _static/img/as_points.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
791 changes: 791 additions & 0 deletions tutorials/as_points.ipynb

Large diffs are not rendered by default.

11 changes: 11 additions & 0 deletions tutorials/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,16 @@ selection for images, and the `datashader` backend for large collections
of shapes and points.
:::

:::{grid-item-card} Rendering elements as points
:link: /notebooks/tutorials/as_points
:link-type: doc
:img-top: /notebooks/_static/img/as_points.png

Draw shapes and label masks as one dot per centroid with `as_points=True`
— a fast overview that trades geometry for speed, including the matplotlib
→ datashader switch above ~50k elements.
:::

:::{grid-item-card} Scalebars
:link: /notebooks/tutorials/scalebars
:link-type: doc
Expand All @@ -65,5 +75,6 @@ getting_started
color_and_palette
multi_panel_color
performance
as_points
scalebars
```
Loading