From 24d93a7ae297997e1da0ea2a96694881d235056a Mon Sep 17 00:00:00 2001 From: Roy Hoitink Date: Fri, 13 Oct 2023 16:31:23 +0200 Subject: [PATCH] Removed obsolete show_plots checkbox --- src/napari_trackpy/_widget.py | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/napari_trackpy/_widget.py b/src/napari_trackpy/_widget.py index 02acf59..dbade15 100644 --- a/src/napari_trackpy/_widget.py +++ b/src/napari_trackpy/_widget.py @@ -36,7 +36,6 @@ def xyz_particle_tracking_settings_widget( min_separation_xy_µm: float = 0.3, min_separation_z_µm: float = 0.3, min_mass=int(1e5), - show_plots: bool = False, ): if img_layer is None: notifications.show_error("No image selected") @@ -64,7 +63,6 @@ def xyz_particle_tracking_settings_widget( min_separation_xy_μm, # noqa F821 min_separation_z_μm, # noqa F821 min_mass, - show_plots, ) results.returned.connect( lambda x: add_points_to_viewer(viewer, img_layer, x) @@ -106,7 +104,6 @@ def do_particle_tracking( min_separation_xy_µm: float, min_separation_z_µm: float, min_mass, - show_plots: bool, ): img = img_layer.metadata["aicsimage"] @@ -170,17 +167,6 @@ def do_particle_tracking( ) ] - if show_plots: - import matplotlib.pyplot as plt - - _, ax = plt.subplots(1, 1) - ax.hist(coords["mass"], bins="auto", fc="blue", ec="k") - ax.set_title("Histogram of particle mass") - ax.set_xlabel("Mass") - ax.set_ylabel("Occurence") - plt.tight_layout() - plt.show(block=False) - notifications.show_info( f"{np.shape(coords)[0]} features found, took {time()-t:.2f} s" )