From 8c76ec0add149afc491302b574f6651f864f66aa Mon Sep 17 00:00:00 2001 From: Alex Drlica-Wagner Date: Wed, 26 Jun 2024 02:27:15 -0500 Subject: [PATCH] update to python3 --- notebooks/kernel_example.ipynb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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",