Skip to content

Commit

Permalink
update to python3
Browse files Browse the repository at this point in the history
  • Loading branch information
kadrlica committed Jun 26, 2024
1 parent fa2b7db commit 8c76ec0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions notebooks/kernel_example.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 8c76ec0

Please sign in to comment.