From 51a567e20eb006396a3875ac5ed07575a61f2369 Mon Sep 17 00:00:00 2001
From: ahmedk <karim.ahmed@xfel.eu>
Date: Wed, 11 Sep 2024 14:50:14 +0200
Subject: [PATCH] update heatmapplot fontsize

---
 notebooks/Gotthard2/Correction_Gotthard2_NBC.ipynb | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/notebooks/Gotthard2/Correction_Gotthard2_NBC.ipynb b/notebooks/Gotthard2/Correction_Gotthard2_NBC.ipynb
index f1961bf82..eb0a56bfa 100644
--- a/notebooks/Gotthard2/Correction_Gotthard2_NBC.ipynb
+++ b/notebooks/Gotthard2/Correction_Gotthard2_NBC.ipynb
@@ -642,18 +642,19 @@
     "for plt_data, dname in zip(\n",
     "    [raw_data, corr_data, corr_data_masked], [\"RAW\", \"CORRECTED\", \"CORRECTED MASKED\"]\n",
     "):\n",
-    "    fig, ax = plt.subplots(figsize=(10, 6))\n",
-    "    plt.rcParams.update({\"font.size\": 12})\n",
+    "    fig, ax = plt.subplots(figsize=(15, 10))\n",
+    "    plt.rcParams.update({\"font.size\": 14})\n",
     "    vmin, vmax = np.nanpercentile(plt_data, [1, 99])\n",
     "    cb_aspect = max(2, (vmax-vmin) / 25)\n",
+    "    ax.tick_params(axis='both', which='major', labelsize=14)\n",
+    "\n",
     "    heatmapPlot(\n",
     "        plt_data,\n",
     "        y_label=\"Pulses\",\n",
     "        x_label=\"Strips\",\n",
     "        title=title_format.format(dname),\n",
     "        use_axis=ax,\n",
-    "        cb_aspect=cb_aspect,  # Adjusted for vertical colorbar\n",
-    "        # cb_size=0.1,\n",
+    "        cb_aspect=cb_aspect,\n",
     "        vmin=vmin, vmax=vmax,\n",
     "        cmap='viridis',\n",
     "    )\n",
-- 
GitLab