Skip to content

Commit

Permalink
Rescale green circles to image size
Browse files Browse the repository at this point in the history
Rescale the radius of the green circles that mark found features to
correspond with the size of the image extracted.
  • Loading branch information
alexbolfa committed Dec 20, 2023
1 parent c553e4c commit 5b1d077
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/napari_psf_extractor/plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ def plot_mass_range(ax, mip, mass, features):

background = np.ones(mip_log.shape)

fig = plt.gcf()
fig.set_size_inches(mip.shape[1] / fig.dpi, mip.shape[0] / fig.dpi)

ax.imshow(background, cmap=fire)
ax.plot(df['x'], df['y'], ls='', color='#00ff00',
marker='o', ms=7, mfc='none', mew=1)
Expand Down

0 comments on commit 5b1d077

Please sign in to comment.