|
95 | 95 | "source": [ |
96 | 96 | "## 1. The default — circles\n", |
97 | 97 | "\n", |
98 | | - "Circle elements are drawn as circles. `shape=\"circle\"` is the default." |
| 98 | + "The default is `shape=None`, which renders each element as its stored geometry — circles here.\n", |
| 99 | + "Passing `shape=\"circle\"` is equivalent for circle elements." |
99 | 100 | ] |
100 | 101 | }, |
101 | 102 | { |
|
185 | 186 | "\n", |
186 | 187 | "Visium spots sit on a hexagonal grid, and are often drawn as touching hexagons rather than dots.\n", |
187 | 188 | "`shape=\"visium_hex\"` does exactly that. We switch to the real Visium mouse-brain section and colour by\n", |
188 | | - "its brain-region clusters." |
| 189 | + "its brain-region clusters.\n", |
| 190 | + "\n", |
| 191 | + "We switch datasets because the synthetic `blobs_circles` are not a real hexagonal grid. The element\n", |
| 192 | + "name (`\"spots\"`) and the columns (`\"cluster\"`, `\"total_counts\"`) below are specific to this dataset —\n", |
| 193 | + "inspect `sdata.shapes` and the annotating table's columns to find the equivalents in your own data." |
189 | 194 | ] |
190 | 195 | }, |
191 | 196 | { |
|
242 | 247 | "## 4. Combining `shape=` with colour and outline\n", |
243 | 248 | "\n", |
244 | 249 | "`shape=` composes with the usual styling — colour by a column, add an outline, set `fill_alpha` (see\n", |
245 | | - "the *Styling shapes and labels* tutorial)." |
| 250 | + "the *Styling shapes and labels* tutorial).\n", |
| 251 | + "\n", |
| 252 | + "(See the *Legends and colorbars* example for `legend_loc` and `colorbar_params`.)" |
246 | 253 | ] |
247 | 254 | }, |
248 | 255 | { |
|
285 | 292 | "\n", |
286 | 293 | "- Circle elements (Visium spots, `blobs_circles`) carry a centre and radius; `shape=` chooses the\n", |
287 | 294 | " marker they are drawn with, leaving the geometry unchanged.\n", |
288 | | - "- `shape=` accepts `\"circle\"` (default), `\"hex\"`, `\"square\"`, and `\"visium_hex\"`.\n", |
| 295 | + "- `shape=` accepts `None` (the default, render as-is), `\"circle\"`, `\"hex\"`, `\"square\"`, and\n", |
| 296 | + " `\"visium_hex\"`; this tutorial uses circle elements (centre + radius), which `shape=` is designed for.\n", |
289 | 297 | "- `shape=\"visium_hex\"` renders Visium spots as a touching hex grid — the familiar Visium look.\n", |
290 | 298 | "- `shape=` composes with colour, outline, and the other styling arguments." |
291 | 299 | ] |
|
0 commit comments