Skip to content
Merged
Changes from all commits
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
17 changes: 5 additions & 12 deletions docs/notebooks/bold_realignment.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -164,21 +164,15 @@
"afni_realigned"
]
},
{
"cell_type": "code",
"execution_count": 6,
"metadata": {},
"outputs": [],
"source": [
"from matplotlib import pyplot as plt"
]
},
{
"cell_type": "code",
"execution_count": 43,
"metadata": {},
"outputs": [],
"source": [
"import pandas as pd\n",
"from matplotlib import pyplot as plt\n",
"\n",
"from nifreeze.viz.motion_viz import plot_framewise_displacement\n",
"\n",
"\n",
Expand Down Expand Up @@ -264,10 +258,9 @@
" )\n",
"\n",
" # Plot the framewise displacement on the first axis\n",
" fd = pd.DataFrame({\"afni\": afni_fd, \"nifreeze\": nifreeze_fd})\n",
" fd_axis = axes[0]\n",
" _ = plot_framewise_displacement(\n",
" afni_fd, nifreeze_fd, \"AFNI 3dVolreg FD\", \"nifreeze FD\", ax=fd_axis\n",
" )\n",
" _ = plot_framewise_displacement(fd, [\"AFNI 3dVolreg FD\", \"nifreeze FD\"], ax=fd_axis)\n",
"\n",
" # Set labels for profile plots if not provided\n",
" if labels is None or isinstance(labels, str):\n",
Expand Down