From b9509a403c06123c22a7b82782ee0a8775110549 Mon Sep 17 00:00:00 2001 From: Leonardo Schwarz Date: Wed, 19 Jun 2024 15:06:38 +0200 Subject: [PATCH] correctly orient the heat maps --- src/depiction/visualize/plot_image.py | 2 +- .../workflow/qc/plot_calibration_map_v2.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/depiction/visualize/plot_image.py b/src/depiction/visualize/plot_image.py index 1db421e..b314deb 100644 --- a/src/depiction/visualize/plot_image.py +++ b/src/depiction/visualize/plot_image.py @@ -56,7 +56,7 @@ def plot_single_channel_image( ax.imshow( dense_values, cmap=cmap, - origin="lower", + origin="upper", vmin=vmin, vmax=vmax, interpolation=interpolation, diff --git a/src/depiction_targeted_preproc/workflow/qc/plot_calibration_map_v2.py b/src/depiction_targeted_preproc/workflow/qc/plot_calibration_map_v2.py index 1cae977..e3d88e8 100644 --- a/src/depiction_targeted_preproc/workflow/qc/plot_calibration_map_v2.py +++ b/src/depiction_targeted_preproc/workflow/qc/plot_calibration_map_v2.py @@ -16,7 +16,7 @@ def qc_plot_calibration_map_v2( fig, axs = plt.subplots(2, 1, figsize=(10, 20)) # show the map - mass_shifts.isel(c=0).plot.imshow(x="x", y="y", ax=axs[0], cmap="coolwarm", vmin=-0.5, vmax=+0.5) + mass_shifts.isel(c=0).plot.imshow(x="x", y="y", ax=axs[0], cmap="coolwarm", vmin=-0.5, vmax=+0.5, yincrease=False) axs[0].set_aspect("equal") test_mass = mass_shifts.coords["c"][0] axs[0].set_title(f"Computed shift for test mass {test_mass:.2f}")