|
317 | 317 | " & (np.abs(TAP_results_q12['dec'] - decg) < 1e-2)\n", |
318 | 318 | " )[0]\n", |
319 | 319 | " if len(whm) > 0:\n", |
320 | | - " bincounts[i,j] = TAP_results_q12['pop'][whm[0]]" |
| 320 | + " bincounts[i, j] = TAP_results_q12['pop'][whm[0]]" |
321 | 321 | ] |
322 | 322 | }, |
323 | 323 | { |
|
334 | 334 | "outputs": [], |
335 | 335 | "source": [ |
336 | 336 | "f, ax = plt.subplots()\n", |
337 | | - "f.set_size_inches(4,4)\n", |
| 337 | + "f.set_size_inches(4, 4)\n", |
338 | 338 | "\n", |
339 | 339 | "im = ax.imshow(\n", |
340 | 340 | " bincounts, \n", |
341 | 341 | " cmap=\"gist_heat\", \n", |
342 | 342 | " origin=\"lower\", \n", |
343 | 343 | " interpolation=\"none\",\n", |
344 | 344 | " norm=PowerNorm(0.5),\n", |
345 | | - " extent=(175,185,-5,5),\n", |
| 345 | + " extent=(175, 185, -5, 5),\n", |
346 | 346 | ")\n", |
347 | 347 | "divider = make_axes_locatable(ax)\n", |
348 | 348 | "cax = divider.append_axes('right', size='5%', pad=0.05)\n", |
|
419 | 419 | "metadata": {}, |
420 | 420 | "outputs": [], |
421 | 421 | "source": [ |
422 | | - "RightShift12 = np.power(4,12) # Divisor to go from HTM IDs to the 8-deep HTM buckets\n", |
| 422 | + "RightShift12 = np.power(4, 12) # Divisor to go from HTM IDs to the 8-deep HTM buckets\n", |
423 | 423 | "\n", |
424 | 424 | "adql_query = f\"\"\"\n", |
425 | 425 | "select (htmid/{RightShift12}) as htm_8, \n", |
|
508 | 508 | "source": [ |
509 | 509 | "# Aitoff-projection scatter plot of HTM-8 bins\n", |
510 | 510 | "\n", |
511 | | - "f = plt.figure(figsize=(10,5))\n", |
| 511 | + "f = plt.figure(figsize=(10, 5))\n", |
512 | 512 | "ax = f.add_axes([0.05, 0.05, 0.925, 0.9], projection=\"aitoff\")\n", |
513 | 513 | "cax = f.add_axes([0.985, 0.05, 0.025, 0.9])\n", |
514 | 514 | "\n", |
|
0 commit comments