Skip to content

Commit

Permalink
Integers needed for subplot input
Browse files Browse the repository at this point in the history
  • Loading branch information
matthew-brett committed Dec 21, 2023
1 parent ae5acc6 commit b65d001
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions examples/labs/bayesian_structural_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def display_landmarks_2d(landmarks, hrois, stats):
fig_input.text(.5,.9, "Input activation maps", ha='center')
vmin, vmax = stats.min(), stats.max()
for subject in range(n_subjects):
plt.subplot(n_subjects / 5, 5, subject + 1)
plt.subplot(n_subjects // 5, 5, subject + 1)
plt.imshow(stats[subject], interpolation='nearest',
vmin=vmin, vmax=vmax)
plt.axis('off')
Expand All @@ -51,7 +51,7 @@ def display_landmarks_2d(landmarks, hrois, stats):
fig_output = plt.figure(figsize=(8, 3.5))
fig_output.text(.5, .9, "Individual landmark regions", ha="center")
for subject in range(n_subjects):
plt.subplot(n_subjects / 5, 5, subject + 1)
plt.subplot(n_subjects // 5, 5, subject + 1)
lw = - np.ones(shape)
if hrois[subject].k > 0:
nls = hrois[subject].get_roi_feature('label')
Expand Down
2 changes: 1 addition & 1 deletion examples/labs/group_reproducibility_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@

plt.figure()
for q, threshold in enumerate(thresholds):
plt.subplot(3, len(thresholds) / 3 + 1, q + 1)
plt.subplot(3, len(thresholds) // 3 + 1, q + 1)
rmap = map_reproducibility(func, var, domain, ngroups, method, verbose,
threshold=threshold, csize=csize)
rmap = np.reshape(rmap, shape)
Expand Down

0 comments on commit b65d001

Please sign in to comment.