Skip to content

Commit 0537048

Browse files
committed
Preview for PR #15 35f6906
1 parent 78e334c commit 0537048

25 files changed

Lines changed: 390 additions & 369 deletions

pr-15/_sources/contributing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ we describe how you can manage environments manually using `pip`:
134134
```bash
135135
python3 -m venv .venv
136136
source .venv/bin/activate
137-
pip install -e ".[dev,test,doc]"
137+
pip install -e . --group dev --group test --group doc
138138
```
139139

140140
The `.venv` directory is typically automatically discovered by IDEs such as VS Code.

pr-15/_sources/notebooks/tutorials/as_points.ipynb

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"By default, `spatialdata-plot` draws each element as its full geometry: a shape\n",
1111
"as its polygon or circle, a labels element as its filled segmentation mask.\n",
1212
"Passing `as_points=True` to `render_shapes()` or `render_labels()` draws one dot\n",
13-
"per element at its centroid instead. You keep where each object sits and what\n",
13+
"per element at its centroid (its geometric centre) instead. You keep where each object sits and what\n",
1414
"colour it has, and you give up its size and outline.\n",
1515
"\n",
1616
"This notebook covers:\n",
@@ -41,8 +41,8 @@
4141
"the SpatialData Zarr format and hosted on the scverse example-data bucket. It is\n",
4242
"about 3.4 GB. `pooch` downloads it once and caches it, so later runs are instant.\n",
4343
"\n",
44-
"This notebook is not re-executed in CI, because the download is too large. Its\n",
45-
"outputs are committed and trusted; run it locally to reproduce them."
44+
"**This notebook is not re-executed in CI, because the download is too large. Its\n",
45+
"outputs are committed and trusted; run it locally to reproduce them.**"
4646
]
4747
},
4848
{
@@ -222,7 +222,11 @@
222222
"\n",
223223
"Here we colour by `EPCAM`, an epithelial marker. Its expression follows the\n",
224224
"tissue: the ductal and tumour regions are bright, the surrounding stroma is dark.\n",
225-
"The centroid view keeps that spatial trend after dropping the outlines."
225+
"The centroid view keeps that spatial trend after dropping the outlines.\n",
226+
"\n",
227+
"The two panels below share a single colourbar only because they plot the same\n",
228+
"`EPCAM` values. To guarantee a shared scale across panels that differ, pass an\n",
229+
"explicit `norm` (e.g. `matplotlib.colors.Normalize(vmin, vmax)`) to each render call."
226230
]
227231
},
228232
{
@@ -269,7 +273,10 @@
269273
"`size` sets the marker area (matplotlib's scatter `s`), independent of the data.\n",
270274
"It is a styling choice, not the cell's real size, which the centroid view does\n",
271275
"not carry. Larger markers read better when zoomed out; smaller ones keep dense\n",
272-
"regions from overlapping into a blob."
276+
"regions from overlapping into a blob.\n",
277+
"\n",
278+
"The default is `size=1.0`, deliberately tiny so that dense point sets do not merge\n",
279+
"into a blob; you will usually raise it, as every example here does."
273280
]
274281
},
275282
{
@@ -634,7 +641,9 @@
634641
"id": "18008bc2",
635642
"metadata": {},
636643
"source": [
637-
"The dots can be drawn by either backend, set with `method`:\n",
644+
"**datashader** is a library that renders very large point sets by aggregating them\n",
645+
"into a pixel grid instead of drawing each dot individually; `spatialdata-plot` uses\n",
646+
"it as an optional backend. The dots can be drawn by either backend, set with `method`:\n",
638647
"\n",
639648
"- `method=\"matplotlib\"`: per-glyph scatter, exact, good up to tens of thousands\n",
640649
" of dots.\n",
@@ -646,7 +655,10 @@
646655
"datashader aggregates and then shades, so it cannot represent one distinct random\n",
647656
"colour per cell, which is the default colouring of a labels element with no\n",
648657
"colour column. In that case it falls back to matplotlib with a warning. With a\n",
649-
"real colour column, as below, both backends work and differ only in appearance."
658+
"real colour column, as below, both backends work and differ only in appearance.\n",
659+
"\n",
660+
"As in section 2, the single colourbar below is valid only because both panels map the\n",
661+
"same values; pass an explicit `norm` to guarantee a shared scale otherwise."
650662
]
651663
},
652664
{

pr-15/_static/documentation_options.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const DOCUMENTATION_OPTIONS = {
2-
VERSION: '0.1.dev1+g8bcfe6c4d.d20260814',
2+
VERSION: '0.1.dev1+g375c17330.d20260819',
33
LANGUAGE: 'en',
44
COLLAPSE_INDEX: false,
55
BUILDER: 'html',

pr-15/api.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
<link rel="preload" as="script" href="_static/scripts/bootstrap.js?digest=90905a2f556bf617f1a9" />
5757
<link rel="preload" as="script" href="_static/scripts/pydata-sphinx-theme.js?digest=90905a2f556bf617f1a9" />
5858

59-
<script src="_static/documentation_options.js?v=cde605d6"></script>
59+
<script src="_static/documentation_options.js?v=d505e5a5"></script>
6060
<script src="_static/doctools.js?v=fd6eb6e6"></script>
6161
<script src="_static/sphinx_highlight.js?v=6ffebe34"></script>
6262
<script src="_static/clipboard.min.js?v=a7894cd8"></script>
@@ -71,7 +71,7 @@
7171
<link rel="prev" title="Interactive region annotation" href="notebooks/examples/interactive_annotate.html" />
7272
<meta name="viewport" content="width=device-width, initial-scale=1"/>
7373
<meta name="docsearch:language" content="en"/>
74-
<meta name="docsearch:version" content="0.1.dev1+g8bcfe6c4d.d20260814" />
74+
<meta name="docsearch:version" content="0.1.dev1+g375c17330.d20260819" />
7575

7676

7777
<script src="_static/searchtools.js"></script>

pr-15/changelog.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
<link rel="preload" as="script" href="_static/scripts/bootstrap.js?digest=90905a2f556bf617f1a9" />
5757
<link rel="preload" as="script" href="_static/scripts/pydata-sphinx-theme.js?digest=90905a2f556bf617f1a9" />
5858

59-
<script src="_static/documentation_options.js?v=cde605d6"></script>
59+
<script src="_static/documentation_options.js?v=d505e5a5"></script>
6060
<script src="_static/doctools.js?v=fd6eb6e6"></script>
6161
<script src="_static/sphinx_highlight.js?v=6ffebe34"></script>
6262
<script src="_static/clipboard.min.js?v=a7894cd8"></script>
@@ -71,7 +71,7 @@
7171
<link rel="prev" title="Plotting (.pl)" href="plotting.html" />
7272
<meta name="viewport" content="width=device-width, initial-scale=1"/>
7373
<meta name="docsearch:language" content="en"/>
74-
<meta name="docsearch:version" content="0.1.dev1+g8bcfe6c4d.d20260814" />
74+
<meta name="docsearch:version" content="0.1.dev1+g375c17330.d20260819" />
7575

7676

7777
<script src="_static/searchtools.js"></script>

pr-15/contributing.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
<link rel="preload" as="script" href="_static/scripts/bootstrap.js?digest=90905a2f556bf617f1a9" />
5757
<link rel="preload" as="script" href="_static/scripts/pydata-sphinx-theme.js?digest=90905a2f556bf617f1a9" />
5858

59-
<script src="_static/documentation_options.js?v=cde605d6"></script>
59+
<script src="_static/documentation_options.js?v=d505e5a5"></script>
6060
<script src="_static/doctools.js?v=fd6eb6e6"></script>
6161
<script src="_static/sphinx_highlight.js?v=6ffebe34"></script>
6262
<script src="_static/clipboard.min.js?v=a7894cd8"></script>
@@ -71,7 +71,7 @@
7171
<link rel="prev" title="Changelog" href="changelog.html" />
7272
<meta name="viewport" content="width=device-width, initial-scale=1"/>
7373
<meta name="docsearch:language" content="en"/>
74-
<meta name="docsearch:version" content="0.1.dev1+g8bcfe6c4d.d20260814" />
74+
<meta name="docsearch:version" content="0.1.dev1+g375c17330.d20260819" />
7575

7676

7777
<script src="_static/searchtools.js"></script>
@@ -536,7 +536,7 @@ <h2>Installing dev dependencies<a class="headerlink" href="#installing-dev-depen
536536
we describe how you can manage environments manually using <code class="docutils literal notranslate"><span class="pre">pip</span></code>:</p>
537537
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>python3<span class="w"> </span>-m<span class="w"> </span>venv<span class="w"> </span>.venv
538538
<span class="nb">source</span><span class="w"> </span>.venv/bin/activate
539-
pip<span class="w"> </span>install<span class="w"> </span>-e<span class="w"> </span><span class="s2">&quot;.[dev,test,doc]&quot;</span>
539+
pip<span class="w"> </span>install<span class="w"> </span>-e<span class="w"> </span>.<span class="w"> </span>--group<span class="w"> </span>dev<span class="w"> </span>--group<span class="w"> </span><span class="nb">test</span><span class="w"> </span>--group<span class="w"> </span>doc
540540
</pre></div>
541541
</div>
542542
<p>The <code class="docutils literal notranslate"><span class="pre">.venv</span></code> directory is typically automatically discovered by IDEs such as VS Code.</p>

pr-15/gallery.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
<link rel="preload" as="script" href="_static/scripts/bootstrap.js?digest=90905a2f556bf617f1a9" />
5757
<link rel="preload" as="script" href="_static/scripts/pydata-sphinx-theme.js?digest=90905a2f556bf617f1a9" />
5858

59-
<script src="_static/documentation_options.js?v=cde605d6"></script>
59+
<script src="_static/documentation_options.js?v=d505e5a5"></script>
6060
<script src="_static/doctools.js?v=fd6eb6e6"></script>
6161
<script src="_static/sphinx_highlight.js?v=6ffebe34"></script>
6262
<script src="_static/clipboard.min.js?v=a7894cd8"></script>
@@ -71,7 +71,7 @@
7171
<link rel="prev" title="spatialdata-plot: rich static plotting from SpatialData objects" href="index.html" />
7272
<meta name="viewport" content="width=device-width, initial-scale=1"/>
7373
<meta name="docsearch:language" content="en"/>
74-
<meta name="docsearch:version" content="0.1.dev1+g8bcfe6c4d.d20260814" />
74+
<meta name="docsearch:version" content="0.1.dev1+g375c17330.d20260819" />
7575

7676

7777
<script src="_static/searchtools.js"></script>

pr-15/genindex.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
<link rel="preload" as="script" href="_static/scripts/bootstrap.js?digest=90905a2f556bf617f1a9" />
4545
<link rel="preload" as="script" href="_static/scripts/pydata-sphinx-theme.js?digest=90905a2f556bf617f1a9" />
4646

47-
<script src="_static/documentation_options.js?v=cde605d6"></script>
47+
<script src="_static/documentation_options.js?v=d505e5a5"></script>
4848
<script src="_static/doctools.js?v=fd6eb6e6"></script>
4949
<script src="_static/sphinx_highlight.js?v=6ffebe34"></script>
5050
<script src="_static/clipboard.min.js?v=a7894cd8"></script>
@@ -57,7 +57,7 @@
5757
<link rel="search" title="Search" href="search.html" />
5858
<meta name="viewport" content="width=device-width, initial-scale=1"/>
5959
<meta name="docsearch:language" content="en"/>
60-
<meta name="docsearch:version" content="0.1.dev1+g8bcfe6c4d.d20260814" />
60+
<meta name="docsearch:version" content="0.1.dev1+g375c17330.d20260819" />
6161

6262

6363
<script src="_static/searchtools.js"></script>

pr-15/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
<link rel="preload" as="script" href="_static/scripts/bootstrap.js?digest=90905a2f556bf617f1a9" />
5757
<link rel="preload" as="script" href="_static/scripts/pydata-sphinx-theme.js?digest=90905a2f556bf617f1a9" />
5858

59-
<script src="_static/documentation_options.js?v=cde605d6"></script>
59+
<script src="_static/documentation_options.js?v=d505e5a5"></script>
6060
<script src="_static/doctools.js?v=fd6eb6e6"></script>
6161
<script src="_static/sphinx_highlight.js?v=6ffebe34"></script>
6262
<script src="_static/clipboard.min.js?v=a7894cd8"></script>
@@ -70,7 +70,7 @@
7070
<link rel="next" title="Gallery" href="gallery.html" />
7171
<meta name="viewport" content="width=device-width, initial-scale=1"/>
7272
<meta name="docsearch:language" content="en"/>
73-
<meta name="docsearch:version" content="0.1.dev1+g8bcfe6c4d.d20260814" />
73+
<meta name="docsearch:version" content="0.1.dev1+g375c17330.d20260819" />
7474

7575

7676
<script src="_static/searchtools.js"></script>

pr-15/notebooks/examples/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
<link rel="preload" as="script" href="../../_static/scripts/bootstrap.js?digest=90905a2f556bf617f1a9" />
5757
<link rel="preload" as="script" href="../../_static/scripts/pydata-sphinx-theme.js?digest=90905a2f556bf617f1a9" />
5858

59-
<script src="../../_static/documentation_options.js?v=cde605d6"></script>
59+
<script src="../../_static/documentation_options.js?v=d505e5a5"></script>
6060
<script src="../../_static/doctools.js?v=fd6eb6e6"></script>
6161
<script src="../../_static/sphinx_highlight.js?v=6ffebe34"></script>
6262
<script src="../../_static/clipboard.min.js?v=a7894cd8"></script>
@@ -71,7 +71,7 @@
7171
<link rel="prev" title="Scalebars in spatialdata-plot" href="../tutorials/scalebars.html" />
7272
<meta name="viewport" content="width=device-width, initial-scale=1"/>
7373
<meta name="docsearch:language" content="en"/>
74-
<meta name="docsearch:version" content="0.1.dev1+g8bcfe6c4d.d20260814" />
74+
<meta name="docsearch:version" content="0.1.dev1+g375c17330.d20260819" />
7575

7676

7777
<script src="../../_static/searchtools.js"></script>

0 commit comments

Comments
 (0)