Skip to content

Commit

Permalink
updated EXTRAS to remove the word: tatoo
Browse files Browse the repository at this point in the history
  • Loading branch information
pbharrin committed May 31, 2011
1 parent a7ade0e commit e3576b4
Show file tree
Hide file tree
Showing 3 changed files with 1,005 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Ch02/EXTRAS/createDist2.py
Expand Up @@ -64,5 +64,5 @@
ax.legend([type1, type2, type3], ["Did Not Like", "Liked in Small Doses", "Liked in Large Doses"], loc=2)
ax.axis([-5000,100000,-2,25])
plt.xlabel('Frequent Flyier Miles Earned Per Year')
plt.ylabel('Percentage of Body Covered By Tatoos')
plt.show()
plt.ylabel('Percentage of Time Spent Playing Video Games')
plt.show()
6 changes: 3 additions & 3 deletions Ch02/EXTRAS/createFirstPlot.py
Expand Up @@ -10,9 +10,9 @@
fig = plt.figure()
ax = fig.add_subplot(111)
datingDataMat,datingLabels = kNN.file2matrix('datingTestSet.txt')
ax.scatter(datingDataMat[:,1], datingDataMat[:,2])
#ax.scatter(datingDataMat[:,1], datingDataMat[:,2], 15.0*array(datingLabels), 15.0*array(datingLabels))
#ax.scatter(datingDataMat[:,1], datingDataMat[:,2])
ax.scatter(datingDataMat[:,1], datingDataMat[:,2], 15.0*array(datingLabels), 15.0*array(datingLabels))
ax.axis([-2,25,-0.2,2.0])
plt.xlabel('Percentage of Body Covered By Tatoos')
plt.xlabel('Percentage of Time Spent Playing Video Games')
plt.ylabel('Liters of Ice Cream Consumed Per Week')
plt.show()

0 comments on commit e3576b4

Please sign in to comment.