Skip to content

Commit 68d92cd

Browse files
committed
Preview for PR #17 9b108fd
1 parent 608a744 commit 68d92cd

3 files changed

Lines changed: 49 additions & 47 deletions

File tree

pr-17/_sources/notebooks/tutorials/multichannel_images.ipynb

Lines changed: 44 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@
3535
"id": "b08a5ca5",
3636
"metadata": {
3737
"execution": {
38-
"iopub.execute_input": "2026-08-26T22:42:23.442294Z",
39-
"iopub.status.busy": "2026-08-26T22:42:23.442179Z",
40-
"iopub.status.idle": "2026-08-26T22:42:30.929826Z",
41-
"shell.execute_reply": "2026-08-26T22:42:30.929152Z"
38+
"iopub.execute_input": "2026-08-26T22:59:30.591925Z",
39+
"iopub.status.busy": "2026-08-26T22:59:30.591814Z",
40+
"iopub.status.idle": "2026-08-26T22:59:38.822058Z",
41+
"shell.execute_reply": "2026-08-26T22:59:38.821422Z"
4242
}
4343
},
4444
"outputs": [
@@ -105,10 +105,10 @@
105105
"id": "d89c8521",
106106
"metadata": {
107107
"execution": {
108-
"iopub.execute_input": "2026-08-26T22:42:30.931802Z",
109-
"iopub.status.busy": "2026-08-26T22:42:30.931644Z",
110-
"iopub.status.idle": "2026-08-26T22:42:30.935159Z",
111-
"shell.execute_reply": "2026-08-26T22:42:30.934657Z"
108+
"iopub.execute_input": "2026-08-26T22:59:38.824289Z",
109+
"iopub.status.busy": "2026-08-26T22:59:38.824129Z",
110+
"iopub.status.idle": "2026-08-26T22:59:38.827757Z",
111+
"shell.execute_reply": "2026-08-26T22:59:38.827096Z"
112112
}
113113
},
114114
"outputs": [
@@ -149,10 +149,10 @@
149149
"id": "570aa7b2",
150150
"metadata": {
151151
"execution": {
152-
"iopub.execute_input": "2026-08-26T22:42:30.936836Z",
153-
"iopub.status.busy": "2026-08-26T22:42:30.936720Z",
154-
"iopub.status.idle": "2026-08-26T22:42:31.511750Z",
155-
"shell.execute_reply": "2026-08-26T22:42:31.510934Z"
152+
"iopub.execute_input": "2026-08-26T22:59:38.829412Z",
153+
"iopub.status.busy": "2026-08-26T22:59:38.829297Z",
154+
"iopub.status.idle": "2026-08-26T22:59:39.470071Z",
155+
"shell.execute_reply": "2026-08-26T22:59:39.469248Z"
156156
}
157157
},
158158
"outputs": [
@@ -188,10 +188,10 @@
188188
"id": "0d925a12",
189189
"metadata": {
190190
"execution": {
191-
"iopub.execute_input": "2026-08-26T22:42:31.514910Z",
192-
"iopub.status.busy": "2026-08-26T22:42:31.514762Z",
193-
"iopub.status.idle": "2026-08-26T22:42:31.810377Z",
194-
"shell.execute_reply": "2026-08-26T22:42:31.809800Z"
191+
"iopub.execute_input": "2026-08-26T22:59:39.473369Z",
192+
"iopub.status.busy": "2026-08-26T22:59:39.473184Z",
193+
"iopub.status.idle": "2026-08-26T22:59:39.772138Z",
194+
"shell.execute_reply": "2026-08-26T22:59:39.771353Z"
195195
}
196196
},
197197
"outputs": [
@@ -229,10 +229,10 @@
229229
"id": "d7b0b288",
230230
"metadata": {
231231
"execution": {
232-
"iopub.execute_input": "2026-08-26T22:42:31.813951Z",
233-
"iopub.status.busy": "2026-08-26T22:42:31.813825Z",
234-
"iopub.status.idle": "2026-08-26T22:42:32.119865Z",
235-
"shell.execute_reply": "2026-08-26T22:42:32.119298Z"
232+
"iopub.execute_input": "2026-08-26T22:59:39.775925Z",
233+
"iopub.status.busy": "2026-08-26T22:59:39.775775Z",
234+
"iopub.status.idle": "2026-08-26T22:59:40.087608Z",
235+
"shell.execute_reply": "2026-08-26T22:59:40.086943Z"
236236
}
237237
},
238238
"outputs": [
@@ -273,10 +273,10 @@
273273
"id": "98f3c957",
274274
"metadata": {
275275
"execution": {
276-
"iopub.execute_input": "2026-08-26T22:42:32.123466Z",
277-
"iopub.status.busy": "2026-08-26T22:42:32.123328Z",
278-
"iopub.status.idle": "2026-08-26T22:42:32.387047Z",
279-
"shell.execute_reply": "2026-08-26T22:42:32.386323Z"
276+
"iopub.execute_input": "2026-08-26T22:59:40.091855Z",
277+
"iopub.status.busy": "2026-08-26T22:59:40.091717Z",
278+
"iopub.status.idle": "2026-08-26T22:59:40.357031Z",
279+
"shell.execute_reply": "2026-08-26T22:59:40.356297Z"
280280
}
281281
},
282282
"outputs": [
@@ -327,10 +327,10 @@
327327
"id": "58e201a1",
328328
"metadata": {
329329
"execution": {
330-
"iopub.execute_input": "2026-08-26T22:42:32.391095Z",
331-
"iopub.status.busy": "2026-08-26T22:42:32.390945Z",
332-
"iopub.status.idle": "2026-08-26T22:42:32.727090Z",
333-
"shell.execute_reply": "2026-08-26T22:42:32.726408Z"
330+
"iopub.execute_input": "2026-08-26T22:59:40.360466Z",
331+
"iopub.status.busy": "2026-08-26T22:59:40.360316Z",
332+
"iopub.status.idle": "2026-08-26T22:59:40.696168Z",
333+
"shell.execute_reply": "2026-08-26T22:59:40.695539Z"
334334
}
335335
},
336336
"outputs": [
@@ -377,10 +377,10 @@
377377
"id": "ace47730",
378378
"metadata": {
379379
"execution": {
380-
"iopub.execute_input": "2026-08-26T22:42:32.731385Z",
381-
"iopub.status.busy": "2026-08-26T22:42:32.731231Z",
382-
"iopub.status.idle": "2026-08-26T22:42:33.168146Z",
383-
"shell.execute_reply": "2026-08-26T22:42:33.167540Z"
380+
"iopub.execute_input": "2026-08-26T22:59:40.700279Z",
381+
"iopub.status.busy": "2026-08-26T22:59:40.700134Z",
382+
"iopub.status.idle": "2026-08-26T22:59:41.160089Z",
383+
"shell.execute_reply": "2026-08-26T22:59:41.159257Z"
384384
}
385385
},
386386
"outputs": [
@@ -418,8 +418,9 @@
418418
"Prefer `palette` here: sequential colormaps like `Blues`/`Reds`/`Greens` run from *white* to colour,\n",
419419
"so blending several of them washes the composite out, whereas `palette` colours are additive on black.\n",
420420
"\n",
421-
"The legend is a plain Matplotlib legend: place it with `legend_loc` and restyle it through the\n",
422-
"returned axes — on a black composite, white frameless labels read best.\n"
421+
"The legend is a plain Matplotlib legend: place it with `legend_params` (`loc`, `fontsize`,\n",
422+
"`fontweight`, `fontoutline`) and restyle anything else through the returned axes — on a black\n",
423+
"composite, white frameless labels read best.\n"
423424
]
424425
},
425426
{
@@ -428,10 +429,10 @@
428429
"id": "b29cbc58",
429430
"metadata": {
430431
"execution": {
431-
"iopub.execute_input": "2026-08-26T22:42:33.170686Z",
432-
"iopub.status.busy": "2026-08-26T22:42:33.170547Z",
433-
"iopub.status.idle": "2026-08-26T22:42:33.496358Z",
434-
"shell.execute_reply": "2026-08-26T22:42:33.495440Z"
432+
"iopub.execute_input": "2026-08-26T22:59:41.162339Z",
433+
"iopub.status.busy": "2026-08-26T22:59:41.162204Z",
434+
"iopub.status.idle": "2026-08-26T22:59:41.489770Z",
435+
"shell.execute_reply": "2026-08-26T22:59:41.488997Z"
435436
}
436437
},
437438
"outputs": [
@@ -453,7 +454,7 @@
453454
" palette=[\"blue\", \"red\", \"green\"],\n",
454455
" norm=[PercentileNormalize(1, 99)] * 3,\n",
455456
" channels_as_legend=True,\n",
456-
").pl.show(legend_loc=\"lower left\", return_ax=True)\n",
457+
").pl.show(legend_params={\"loc\": \"lower left\"}, return_ax=True)\n",
457458
"\n",
458459
"legend = ax.get_legend()\n",
459460
"legend.get_frame().set_visible(False)\n",
@@ -491,10 +492,10 @@
491492
"id": "d00dc035",
492493
"metadata": {
493494
"execution": {
494-
"iopub.execute_input": "2026-08-26T22:42:33.499488Z",
495-
"iopub.status.busy": "2026-08-26T22:42:33.499335Z",
496-
"iopub.status.idle": "2026-08-26T22:42:33.535469Z",
497-
"shell.execute_reply": "2026-08-26T22:42:33.534743Z"
495+
"iopub.execute_input": "2026-08-26T22:59:41.493548Z",
496+
"iopub.status.busy": "2026-08-26T22:59:41.493400Z",
497+
"iopub.status.idle": "2026-08-26T22:59:41.531616Z",
498+
"shell.execute_reply": "2026-08-26T22:59:41.530923Z"
498499
}
499500
},
500501
"outputs": [

pr-17/notebooks/tutorials/multichannel_images.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -638,8 +638,9 @@ <h2>8. Labelling the composite — <code class="docutils literal notranslate"><s
638638
a single shared <code class="docutils literal notranslate"><span class="pre">cmap</span></code> there is nothing to map, and the flag is ignored with a warning.</p>
639639
<p>Prefer <code class="docutils literal notranslate"><span class="pre">palette</span></code> here: sequential colormaps like <code class="docutils literal notranslate"><span class="pre">Blues</span></code>/<code class="docutils literal notranslate"><span class="pre">Reds</span></code>/<code class="docutils literal notranslate"><span class="pre">Greens</span></code> run from <em>white</em> to colour,
640640
so blending several of them washes the composite out, whereas <code class="docutils literal notranslate"><span class="pre">palette</span></code> colours are additive on black.</p>
641-
<p>The legend is a plain Matplotlib legend: place it with <code class="docutils literal notranslate"><span class="pre">legend_loc</span></code> and restyle it through the
642-
returned axes — on a black composite, white frameless labels read best.</p>
641+
<p>The legend is a plain Matplotlib legend: place it with <code class="docutils literal notranslate"><span class="pre">legend_params</span></code> (<code class="docutils literal notranslate"><span class="pre">loc</span></code>, <code class="docutils literal notranslate"><span class="pre">fontsize</span></code>,
642+
<code class="docutils literal notranslate"><span class="pre">fontweight</span></code>, <code class="docutils literal notranslate"><span class="pre">fontoutline</span></code>) and restyle anything else through the returned axes — on a black
643+
composite, white frameless labels read best.</p>
643644
<div class="cell docutils container">
644645
<div class="cell_input docutils container">
645646
<div class="highlight-ipython3 notranslate"><div class="highlight"><pre><span></span><span class="n">ax</span> <span class="o">=</span> <span class="n">sdata</span><span class="o">.</span><span class="n">pl</span><span class="o">.</span><span class="n">render_images</span><span class="p">(</span>
@@ -648,7 +649,7 @@ <h2>8. Labelling the composite — <code class="docutils literal notranslate"><s
648649
<span class="n">palette</span><span class="o">=</span><span class="p">[</span><span class="s2">"blue"</span><span class="p">,</span> <span class="s2">"red"</span><span class="p">,</span> <span class="s2">"green"</span><span class="p">],</span>
649650
<span class="n">norm</span><span class="o">=</span><span class="p">[</span><span class="n">PercentileNormalize</span><span class="p">(</span><span class="mi">1</span><span class="p">,</span> <span class="mi">99</span><span class="p">)]</span> <span class="o">*</span> <span class="mi">3</span><span class="p">,</span>
650651
<span class="n">channels_as_legend</span><span class="o">=</span><span class="kc">True</span><span class="p">,</span>
651-
<span class="p">)</span><span class="o">.</span><span class="n">pl</span><span class="o">.</span><span class="n">show</span><span class="p">(</span><span class="n">legend_loc</span><span class="o">=</span><span class="s2">"lower left"</span><span class="p">,</span> <span class="n">return_ax</span><span class="o">=</span><span class="kc">True</span><span class="p">)</span>
652+
<span class="p">)</span><span class="o">.</span><span class="n">pl</span><span class="o">.</span><span class="n">show</span><span class="p">(</span><span class="n">legend_params</span><span class="o">=</span><span class="p">{</span><span class="s2">"loc"</span><span class="p">:</span> <span class="s2">"lower left"</span><span class="p">},</span> <span class="n">return_ax</span><span class="o">=</span><span class="kc">True</span><span class="p">)</span>
652653

653654
<span class="n">legend</span> <span class="o">=</span> <span class="n">ax</span><span class="o">.</span><span class="n">get_legend</span><span class="p">()</span>
654655
<span class="n">legend</span><span class="o">.</span><span class="n">get_frame</span><span class="p">()</span><span class="o">.</span><span class="n">set_visible</span><span class="p">(</span><span class="kc">False</span><span class="p">)</span>

pr-17/searchindex.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)