diff --git a/notebooks/kernel_example.ipynb b/notebooks/kernel_example.ipynb index f6860be..7cc5c39 100644 --- a/notebooks/kernel_example.ipynb +++ b/notebooks/kernel_example.ipynb @@ -396,8 +396,8 @@ "plt.sca(ax[1])\n", "bins = np.linspace(0,1,100)\n", "centers = (bins[:-1]+bins[1:])/2.\n", - "plt.hist(angsep(ker.lon,ker.lat,lon,lat),bins=bins,histtype='step',normed=True,label='Polar Radius')\n", - "plt.hist(ker.radius(lon,lat),bins=bins,histtype='step',normed=True,label='Elliptical Radius')\n", + "plt.hist(angsep(ker.lon,ker.lat,lon,lat),bins=bins,histtype='step',density=True,label='Polar Radius')\n", + "plt.hist(ker.radius(lon,lat),bins=bins,histtype='step',density=True,label='Elliptical Radius')\n", "plt.plot(centers,[len(bins)*ker.integrate(b1,b2) for b1,b2 in zip(bins[:-1],bins[1:])],label='Elliptical Radius')\n", "plt.xlim(0,0.7)\n", "plt.xlabel('Radius (deg)')\n",