Skip to content

Commit 48178d7

Browse files
authored
Merge pull request udacity#301 from mattdeak/master
visuals.py now runs in both python 2 and 3
2 parents b69ebce + 59f3eb1 commit 48178d7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

projects/finding_donors/visuals.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,11 @@ def evaluate(results, accuracy, f1):
7272
for i in np.arange(3):
7373

7474
# Creative plot code
75-
ax[j/3, j%3].bar(i+k*bar_width, results[learner][i][metric], width = bar_width, color = colors[k])
76-
ax[j/3, j%3].set_xticks([0.45, 1.45, 2.45])
77-
ax[j/3, j%3].set_xticklabels(["1%", "10%", "100%"])
78-
ax[j/3, j%3].set_xlabel("Training Set Size")
79-
ax[j/3, j%3].set_xlim((-0.1, 3.0))
75+
ax[j//3, j%3].bar(i+k*bar_width, results[learner][i][metric], width = bar_width, color = colors[k])
76+
ax[j//3, j%3].set_xticks([0.45, 1.45, 2.45])
77+
ax[j//3, j%3].set_xticklabels(["1%", "10%", "100%"])
78+
ax[j//3, j%3].set_xlabel("Training Set Size")
79+
ax[j//3, j%3].set_xlim((-0.1, 3.0))
8080

8181
# Add unique y-labels
8282
ax[0, 0].set_ylabel("Time (in seconds)")

0 commit comments

Comments
 (0)