diff --git a/notebooks/02-advanced-plots.ipynb b/notebooks/02-advanced-plots.ipynb index deb8ddb0..e8536255 100644 --- a/notebooks/02-advanced-plots.ipynb +++ b/notebooks/02-advanced-plots.ipynb @@ -503,7 +503,7 @@ "\n", "# use psf size as minimum distance between peaks (in pixels).\n", "min_distance = int(get_psf_size(survey))\n", - "sep = SepSingleBand(max_n_sources=max_n_sources, thresh=thresh, use_band=2, min_area=3)\n", + "sep = SepSingleBand(max_n_sources=max_n_sources, thresh=thresh, use_band=2, min_area=min_area)\n", "scarlet = Scarlet(max_n_sources)\n", "matcher = PixelHungarianMatcher(min_distance)\n" ] @@ -640,7 +640,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "## Precision curves" + "## Recall curves" ] }, { @@ -1098,19 +1098,11 @@ } ], "source": [ - "from mpl_toolkits.axes_grid1 import make_axes_locatable\n", - "\n", - "\n", "# pick a random index with a nice looking blend\n", - "idx = 75\n", - "# idx = np.random.randint(0, 100)\n", + "idx = np.random.randint(0, 100)\n", "fig, ax = plt.subplots(1,1, figsize=(6,6))\n", "crop = 30\n", "im = ax.imshow(blend_batch.blend_images[idx,2, crop:-crop, crop:-crop])\n", - "# im = ax.imshow(blend_batch.blend_images[idx,2])\n", - "# divider = make_axes_locatable(ax)\n", - "# cax = divider.append_axes('right', size='5%', pad=0.05)\n", - "# fig.colorbar(im, cax=cax, orientation='vertical')\n", "ax.set_axis_off()\n", "\n", "x = blend_batch.catalog_list[idx]['x_peak'] - crop\n", @@ -1158,9 +1150,6 @@ " axes[0,ii].imshow(img1[ii][crop:-crop, crop:-crop], vmin=zmin, vmax=zmax)\n", " axes[1,ii].imshow(img2[ii][crop:-crop, crop:-crop], vmin=zmin, vmax=zmax)\n", "\n", - " # divider = make_axes_locatable(axes[0,ii])\n", - " # cax = divider.append_axes('right', size='5%', pad=0.05)\n", - " # fig.colorbar(im, cax=cax, orientation='vertical')\n", "\n", "plt.subplots_adjust(hspace=0.25)\n", "plt.tight_layout()\n",