Skip to content

Commit

Permalink
correctly orient the heat maps
Browse files Browse the repository at this point in the history
  • Loading branch information
leoschwarz committed Jun 19, 2024
1 parent 89abbd8 commit b9509a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/depiction/visualize/plot_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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}")
Expand Down

0 comments on commit b9509a4

Please sign in to comment.