Skip to content

Commit ef344cb

Browse files
author
Atheer Alsayah
committed
Update inflow plot functions
1 parent e8e34ac commit ef344cb

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

docs/notebooks/inflow_score_tutorial.ipynb

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1410,15 +1410,17 @@
14101410
}
14111411
],
14121412
"source": [
1413-
"li.pl.plot_spatial_inflow_score_single_interaction(\n",
1413+
"fig, ax = li.pl.plot_spatial_inflow_score_single_interaction(\n",
14141414
" adata=lrdata,\n",
14151415
" spatial_key=\"X_spatial_coords\",\n",
14161416
" interaction=\"GABAergic neuron^Efna5^Epha10\",\n",
14171417
" obs_key=\"cell_type\",\n",
14181418
" percentile_scaling = (5,95),\n",
14191419
" labels=[\"glutamatergic neuron\", \"astrocyte\", \"lymphocyte\", \"GABAergic neuron\"],\n",
14201420
" colorbar_layout='bottom',\n",
1421-
" show_counts=False)"
1421+
" show_counts=False)\n",
1422+
"\n",
1423+
"fig"
14221424
]
14231425
},
14241426
{
@@ -1458,15 +1460,17 @@
14581460
}
14591461
],
14601462
"source": [
1461-
"li.pl.plot_spatial_inflow_score_single_interaction(\n",
1463+
"fig, ax = li.pl.plot_spatial_inflow_score_single_interaction(\n",
14621464
" adata=lrdata,\n",
14631465
" spatial_key=\"X_spatial_coords\",\n",
14641466
" interaction=\"GABAergic neuron^Efna5^Epha10\",\n",
14651467
" obs_key=\"major_brain_region\",\n",
14661468
" percentile_scaling = (5,95),\n",
14671469
" labels=[\"Isocortex\", \"Striatum\", \"Thalamus\", \"Hypothalamus\"],\n",
14681470
" colorbar_layout='side',\n",
1469-
" show_counts=False)"
1471+
" show_counts=False)\n",
1472+
"\n",
1473+
"fig"
14701474
]
14711475
},
14721476
{

0 commit comments

Comments
 (0)