Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
paquiteau committed Mar 4, 2025
1 parent 5d3ae5d commit d888974
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/GPU/example_learn_straight_line_readouts.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def plot_state(mri_2D, traj, recon, loss=None, save_name=None, i=None):
axs[0].axis("off")
axs[0].set_title("MR Image")
if traj.shape[-1] == 3:
if i is not None and i > 50:
if i is not None and i > 20:
axs[1].scatter(*traj.T[1:3, 0], s=10, color="blue")
else:
fig_kwargs = {}
Expand All @@ -136,7 +136,7 @@ def plot_state(mri_2D, traj, recon, loss=None, save_name=None, i=None):
i / 25 * 60 - 60,
30 - i / 25 * 30,
)
plt_kwargs["alpha"] = 0.2 + 0.8 * i / 20
plt_kwargs["alpha"] = 0.2 + 0.8 * i / 20, 1
plt_kwargs["s"] = 1 + 9 * i / 20
axs[1].remove()
axs[1] = fig.add_subplot(*fig_grid, 2, projection="3d", **fig_kwargs)
Expand Down

0 comments on commit d888974

Please sign in to comment.