Skip to content

Commit

Permalink
Fix plotting of files (#125)
Browse files Browse the repository at this point in the history
  • Loading branch information
FeGeyer authored Nov 17, 2022
1 parent 8ea31a8 commit 5a97566
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions radionets/dl_framework/callbacks.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,14 @@ def plot_test_pred(self):
self.uncertainty = True

fig, ((ax1, ax2), (ax3, ax4)) = plt.subplots(2, 2, figsize=(16, 10))
lim_phase = check_vmin_vmax(img_true[0, 1])
lim_phase = check_vmin_vmax(img_true[1])
im1 = ax1.imshow(pred[0, 0], cmap="inferno")
if self.uncertainty:
im2 = ax2.imshow(pred[0, 2], cmap=OrBu, vmin=-lim_phase, vmax=lim_phase)
else:
im2 = ax2.imshow(pred[0, 1], cmap=OrBu, vmin=-lim_phase, vmax=lim_phase)
im3 = ax3.imshow(img_true[0, 0], cmap="inferno")
im4 = ax4.imshow(img_true[0, 1], cmap=OrBu, vmin=-lim_phase, vmax=lim_phase)
im3 = ax3.imshow(img_true[0], cmap="inferno")
im4 = ax4.imshow(img_true[1], cmap=OrBu, vmin=-lim_phase, vmax=lim_phase)
make_axes_nice(fig, ax1, im1, "Amplitude")
make_axes_nice(fig, ax2, im2, "Phase", phase=True)
make_axes_nice(fig, ax3, im3, "Org. Amplitude")
Expand Down

0 comments on commit 5a97566

Please sign in to comment.