Skip to content

Commit

Permalink
Merge pull request #41 from pbarbarant/fix_interpolation_plot
Browse files Browse the repository at this point in the history
[DOCFIX] Invert interpolation plot
  • Loading branch information
pbarbarant authored Jan 2, 2024
2 parents 58cdfee + 54dff4d commit 63e7007
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/01_brain_alignment/plot_2_aligning_brain_sparse.py
Original file line number Diff line number Diff line change
Expand Up @@ -694,7 +694,7 @@ def plot_surface_map(
# plus ``(1 - id_reg)`` times the transport plan computed by FUGW.

# Set of weights for the regularization parameter
id_reg = [.0, .5, 1.]
id_reg = [0.0, 0.5, 1.0]

fig = plt.figure(figsize=(3 * 5, 4))
fig.suptitle(
Expand All @@ -713,13 +713,13 @@ def plot_surface_map(
colorbar=False,
)

for i in range(len(id_reg)):
for i, weight in enumerate(sorted(id_reg, reverse=True)):
predicted_target_features = fine_mapping.transform(
source_features[contrast_index, :],
id_reg=id_reg[i],
id_reg=weight,
)
ax = fig.add_subplot(grid_spec[0, i + 1], projection="3d")
ax.set_title(f"id_reg={id_reg[i]}")
ax.set_title(f"id_reg={weight}")
plot_surface_map(
predicted_target_features, axes=ax, vmax=10, vmin=-10, colorbar=False
)
Expand Down

0 comments on commit 63e7007

Please sign in to comment.