Skip to content

Commit

Permalink
Update_Lecture_kNN_3
Browse files Browse the repository at this point in the history
Changed normed=True to density=True to align with current documentation
  • Loading branch information
jack-epstein authored Nov 3, 2020
1 parent fb5ef11 commit 59d83c0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ipython/python35/Lecture_kNN_3.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -283,10 +283,10 @@
"fig = plt.figure()\n",
"frame = plt.gca()\n",
"ax = fig.add_subplot(111)\n",
"h1 = plt.hist(dists[2], range=r, bins=b, normed=True, histtype='step',stacked=True,label='Dim=2')\n",
"h2 = plt.hist(dists[10],range=r, bins=b, normed=True, histtype='step',stacked=True,label='Dim=10')\n",
"h3 = plt.hist(dists[20],range=r, bins=b, normed=True, histtype='step',stacked=True,label='Dim=30')\n",
"h4 = plt.hist(dists[40],range=r, bins=b, normed=True, histtype='step',stacked=True,label='Dim=40')\n",
"h1 = plt.hist(dists[2], range=r, bins=b, density=True, histtype='step',stacked=True,label='Dim=2')\n",
"h2 = plt.hist(dists[10],range=r, bins=b, density=True, histtype='step',stacked=True,label='Dim=10')\n",
"h3 = plt.hist(dists[20],range=r, bins=b, density=True, histtype='step',stacked=True,label='Dim=30')\n",
"h4 = plt.hist(dists[40],range=r, bins=b, density=True, histtype='step',stacked=True,label='Dim=40')\n",
"frame.axes.get_yaxis().set_ticks([])\n",
"ax.set_xlabel('Pairwise Distance')\n",
"ax.set_ylabel('Pct of Pairs with Distance')\n",
Expand Down

0 comments on commit 59d83c0

Please sign in to comment.