diff --git a/data_processing.ipynb b/data_processing.ipynb index 2388611..2ffc250 100644 --- a/data_processing.ipynb +++ b/data_processing.ipynb @@ -325,6 +325,8 @@ "source": [ "# Make figure of B1+ values along the spinal cord across shim methods\n", "\n", + "plt.rcParams['font.family'] = 'Arial'\n", + "\n", "def smooth_data(data, window_size=20):\n", " \"\"\" Apply a simple moving average to smooth the data. \"\"\"\n", " return uniform_filter1d(data, size=window_size, mode='nearest')\n", @@ -348,6 +350,7 @@ "\n", "# Create a figure with multiple subplots\n", "fig, axes = plt.subplots(n_rows, 1, figsize=(10, 6 * n_rows))\n", + "font_size = 18\n", "\n", "# Check if axes is an array or a single object\n", "if n_rows == 1:\n", @@ -389,12 +392,13 @@ " ax.set_xticks(custom_xticks)\n", " ax.set_xticklabels([''] * len(original_vector))\n", "\n", - " ax.set_title(f'{subject}')\n", - " ax.set_ylabel('B1+ efficiency [nT/V]')\n", + " ax.set_title(f'{subject}', fontsize=font_size)\n", + " ax.set_ylabel('B1+ efficiency [nT/V]', fontsize=font_size)\n", + " ax.tick_params(axis='y', which='major', labelsize=font_size-4)\n", "\n", " # Add legend only to the first subplot\n", " if i == 0:\n", - " ax.legend()\n", + " ax.legend(fontsize=font_size)\n", "\n", " ax.grid(True)\n", "\n",