|
245 | 245 | "\n",
|
246 | 246 | "\n",
|
247 | 247 | "def plot_combined_profile(\n",
|
248 |
| - " images, afni_fd, nifreeze_fd, indexing=None, figsize=(15, 1.7), cmap=\"gray\", labels=None\n", |
| 248 | + " images, _afni_fd, _nifreeze_fd, indexing=None, figsize=(15, 1.7), cmap=\"gray\", labels=None\n", |
249 | 249 | "):\n",
|
250 | 250 | " # Calculate the number of profile plots\n",
|
251 | 251 | " n_images = len(images)\n",
|
|
258 | 258 | " )\n",
|
259 | 259 | "\n",
|
260 | 260 | " # Plot the framewise displacement on the first axis\n",
|
261 |
| - " fd = pd.DataFrame({\"afni\": afni_fd, \"nifreeze\": nifreeze_fd})\n", |
| 261 | + " fd = pd.DataFrame({\"afni\": _afni_fd, \"nifreeze\": _nifreeze_fd})\n", |
262 | 262 | " fd_axis = axes[0]\n",
|
263 | 263 | " _ = plot_framewise_displacement(fd, [\"AFNI 3dVolreg FD\", \"nifreeze FD\"], ax=fd_axis)\n",
|
264 | 264 | "\n",
|
|
298 | 298 | "source": [
|
299 | 299 | "plot_combined_profile(\n",
|
300 | 300 | " (DATA_PATH / bold_runs[15], afni_realigned[15], afni_realigned[15]),\n",
|
| 301 | + " afni_fd, nifreeze_fd,\n", |
301 | 302 | " labels=(\"hmc1\", \"original\", \"hmc2\"),\n",
|
302 | 303 | ");"
|
303 | 304 | ]
|
|
0 commit comments