From 168b5a514b18e95bd1a462a1f5f12141a7d221e8 Mon Sep 17 00:00:00 2001 From: ahmedk <karim.ahmed@xfel.eu> Date: Tue, 7 Nov 2023 10:26:53 +0100 Subject: [PATCH] improve the plotting for corrected preview for A1256 --- .../Jungfrau_Gain_Correct_and_Verify_NBC.ipynb | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/notebooks/Jungfrau/Jungfrau_Gain_Correct_and_Verify_NBC.ipynb b/notebooks/Jungfrau/Jungfrau_Gain_Correct_and_Verify_NBC.ipynb index 3e319e8d3..fa908ddc7 100644 --- a/notebooks/Jungfrau/Jungfrau_Gain_Correct_and_Verify_NBC.ipynb +++ b/notebooks/Jungfrau/Jungfrau_Gain_Correct_and_Verify_NBC.ipynb @@ -817,6 +817,12 @@ " vmin=_corrected_vmin, vmax=_corrected_vmax, cmap=\"jet\"\n", ")\n", "\n", + "if strixel_sensor:\n", + " if strixel_sensor == \"A0123\":\n", + " aspect = 10\n", + " else: # A1256\n", + " aspect = 1/3\n", + "\n", "if not strixel_sensor:\n", " geom.plot_data_fast(\n", " corrected_mean,\n", @@ -825,7 +831,7 @@ " **mean_plot_kwargs\n", " )\n", "else:\n", - " ax.imshow(corrected_mean.squeeze(), aspect=10, **mean_plot_kwargs)\n", + " ax.imshow(corrected_mean.squeeze(), aspect=aspect, **mean_plot_kwargs)\n", " \n", "ax.set_title(f'{karabo_id} - Mean CORRECTED', size=18)\n", "\n", @@ -852,7 +858,7 @@ " **mean_plot_kwargs\n", " )\n", "else:\n", - " ax.imshow(corrected_mean.squeeze(), aspect=10, **mean_plot_kwargs)\n", + " ax.imshow(corrected_mean.squeeze(), aspect=aspect, **mean_plot_kwargs)\n", "\n", "ax.set_title(f'{karabo_id} - Mean CORRECTED with mask', size=18)\n", "\n", @@ -883,7 +889,7 @@ " **single_plot_kwargs\n", " )\n", "else:\n", - " ax.imshow(corrected_train.squeeze(), aspect=10, **single_plot_kwargs)\n", + " ax.imshow(corrected_train.squeeze(), aspect=aspect, **single_plot_kwargs)\n", "\n", "ax.set_title(f\"{karabo_id} - CORRECTED train: {tid}\", size=18)\n", "\n", -- GitLab