Skip to content

Commit

Permalink
Updated figure legend
Browse files Browse the repository at this point in the history
  • Loading branch information
jcohenadad committed Jan 9, 2024
1 parent afce8ad commit 36356d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions data_processing.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@
" return uniform_filter1d(data, size=window_size, mode='nearest')\n",
"\n",
"# Fixed grid for x-axis\n",
"x_grid = np.linspace(0, 1, num_points)\n",
"x_grid = np.linspace(0, 1, 100)\n",
"\n",
"# z-slices corresponding to levels C1 to T2 on the PAM50 template. These will be used to scale the x-label of each subject.\n",
"original_vector = np.array([984, 938, 907, 870, 833, 800, 769, 735, 692, 646])\n",
Expand Down Expand Up @@ -383,7 +383,7 @@
" if method_data:\n",
" # Plotting each file's data separately\n",
" for resampled_data in method_data:\n",
" ax.plot(x_grid, resampled_data, label=f\"{shim_method} - {file_path.split('/')[-1]}\")\n",
" ax.plot(x_grid, resampled_data, label=f\"{shim_method}\")\n",
"\n",
" # Set custom x-ticks\n",
" ax.set_xticks(custom_xticks)\n",
Expand Down

0 comments on commit 36356d2

Please sign in to comment.