Repository navigation
Commit 9a18500
committed
docs: add a Scalebars tutorial
A focused tutorial on drawing physical scalebars via the scalebar_* arguments
of .pl.show(), on the synthetic blobs dataset:
- scalebar_dx (the one required piece) and why it's needed: SpatialData
coordinate systems carry no unit metadata, so you supply the physical size
of one axes-unit.
- scalebar_units and automatic magnitude scaling (um -> mm).
- styling via scalebar_params (placement, colour, box, length_fraction,
scale_loc, fonts) - forwarded verbatim to matplotlib-scalebar.
- fixed_value for an exact bar length.
- cross-links the Visium example for a real-data figure.
Wired into the gallery: card in tutorials/index.md (inside the gallery-cards
markers, root-relative paths) + toctree entry + thumbnail. Addresses part of
scverse/spatialdata-plot#463.1 parent 8d786cf commit 9a18500
3 files changed
Lines changed: 391 additions & 0 deletions
Loading
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
38 | 47 | | |
39 | 48 | | |
40 | 49 | | |
| |||
45 | 54 | | |
46 | 55 | | |
47 | 56 | | |
| 57 | + | |
48 | 58 | | |
Large diffs are not rendered by default.
0 commit comments