Skip to content

Commit

Permalink
visuals.py now runs in both python 2 and 3
Browse files Browse the repository at this point in the history
  • Loading branch information
mattdeak committed Nov 17, 2017
1 parent b69ebce commit 59f3eb1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions projects/finding_donors/visuals.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,11 @@ def evaluate(results, accuracy, f1):
for i in np.arange(3):

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

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

0 comments on commit 59f3eb1

Please sign in to comment.