Skip to content
This repository was archived by the owner on Feb 26, 2025. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions doc/source/notebooks/03_node_properties.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -333,11 +333,8 @@
"\n",
"df_grouped = df_all.groupby('synapse_class')\n",
"\n",
"import warnings\n",
"with warnings.catch_warnings():\n",
" warnings.simplefilter(\"ignore\") # For: UserWarning: No data for colormapping provided via 'c'.\n",
" for color, (name, group) in zip(('r', 'b'), df_grouped):\n",
" group.plot.scatter(x='x', y='z', c=color, ax=ax, label=name)\n",
"for color, (name, group) in zip(('r', 'b'), df_grouped):\n",
" group.plot.scatter(x='x', y='z', c=[color], ax=ax, label=name)\n",
"\n",
"ax.axis('equal')\n",
"ax.set_xlabel(u'x (μm)')\n",
Expand Down Expand Up @@ -397,7 +394,7 @@
{
"data": {
"text/plain": [
"<bluepysnap.node_sets.NodeSets at 0x2aaae3d1bb20>"
"<bluepysnap.node_sets.NodeSets at 0x2aaae6583fa0>"
]
},
"execution_count": 7,
Expand Down