Skip to content

Commit b65d001

Browse files
committed
Integers needed for subplot input
1 parent ae5acc6 commit b65d001

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

examples/labs/bayesian_structural_analysis.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def display_landmarks_2d(landmarks, hrois, stats):
4242
fig_input.text(.5,.9, "Input activation maps", ha='center')
4343
vmin, vmax = stats.min(), stats.max()
4444
for subject in range(n_subjects):
45-
plt.subplot(n_subjects / 5, 5, subject + 1)
45+
plt.subplot(n_subjects // 5, 5, subject + 1)
4646
plt.imshow(stats[subject], interpolation='nearest',
4747
vmin=vmin, vmax=vmax)
4848
plt.axis('off')
@@ -51,7 +51,7 @@ def display_landmarks_2d(landmarks, hrois, stats):
5151
fig_output = plt.figure(figsize=(8, 3.5))
5252
fig_output.text(.5, .9, "Individual landmark regions", ha="center")
5353
for subject in range(n_subjects):
54-
plt.subplot(n_subjects / 5, 5, subject + 1)
54+
plt.subplot(n_subjects // 5, 5, subject + 1)
5555
lw = - np.ones(shape)
5656
if hrois[subject].k > 0:
5757
nls = hrois[subject].get_roi_feature('label')

examples/labs/group_reproducibility_analysis.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@
113113

114114
plt.figure()
115115
for q, threshold in enumerate(thresholds):
116-
plt.subplot(3, len(thresholds) / 3 + 1, q + 1)
116+
plt.subplot(3, len(thresholds) // 3 + 1, q + 1)
117117
rmap = map_reproducibility(func, var, domain, ngroups, method, verbose,
118118
threshold=threshold, csize=csize)
119119
rmap = np.reshape(rmap, shape)

0 commit comments

Comments
 (0)