Skip to content

Commit 52d7d70

Browse files
committed
Preview for PR #19 a059b90
1 parent 0726bd7 commit 52d7d70

3 files changed

Lines changed: 7 additions & 2 deletions

File tree

pr-19/_sources/notebooks/examples/point_density.ipynb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,10 @@
265265
"## 4. Per-category density\n",
266266
"\n",
267267
"Colouring by a categorical column draws a **separate density per category** (via `datashader.by`).\n",
268-
"Here, three marker genes selected with `groups` — each traces its own spatial distribution."
268+
"Here, three marker genes selected with `groups` — each traces its own spatial distribution.\n",
269+
"\n",
270+
"With `groups` set and no `na_color`, transcripts outside the three genes are dropped entirely (not\n",
271+
"greyed), so each density reflects only its own gene."
269272
]
270273
},
271274
{

pr-19/notebooks/examples/point_density.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -551,6 +551,8 @@ <h2>3. Reshaping the intensity — <code class="docutils literal notranslate"><s
551551
<h2>4. Per-category density<a class="headerlink" href="#per-category-density" title="Link to this heading">#</a></h2>
552552
<p>Colouring by a categorical column draws a <strong>separate density per category</strong> (via <code class="docutils literal notranslate"><span class="pre">datashader.by</span></code>).
553553
Here, three marker genes selected with <code class="docutils literal notranslate"><span class="pre">groups</span></code> — each traces its own spatial distribution.</p>
554+
<p>With <code class="docutils literal notranslate"><span class="pre">groups</span></code> set and no <code class="docutils literal notranslate"><span class="pre">na_color</span></code>, transcripts outside the three genes are dropped entirely (not
555+
greyed), so each density reflects only its own gene.</p>
554556
<div class="cell docutils container">
555557
<div class="cell_input docutils container">
556558
<div class="highlight-ipython3 notranslate"><div class="highlight"><pre><span></span><span class="n">sdata</span><span class="o">.</span><span class="n">pl</span><span class="o">.</span><span class="n">render_points</span><span class="p">(</span>

0 commit comments

Comments
 (0)