File tree Expand file tree Collapse file tree 1 file changed +1
-10
lines changed
Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -60,14 +60,13 @@ def draw(self) -> None:
6060 self .axes .legend ()
6161
6262
63- class FeaturesHistogramWidget (NapariMPLWidget ):
63+ class FeaturesHistogramWidget (SingleAxesWidget ):
6464 n_layers_input = Interval (1 , 1 )
6565 # All layers that have a .features attributes
6666 input_layer_types = FEATURES_LAYER_TYPES
6767
6868 def __init__ (self , napari_viewer : napari .viewer .Viewer ):
6969 super ().__init__ (napari_viewer )
70- self .axes = self .canvas .figure .subplots ()
7170
7271 self ._key_selection_widget = magicgui (
7372 self ._set_axis_keys ,
@@ -78,14 +77,6 @@ def __init__(self, napari_viewer: napari.viewer.Viewer):
7877
7978 self .update_layers (None )
8079
81- def clear (self ) -> None :
82- """
83- Clear the axes.
84- """
85- self .axes .clear ()
86-
87- self .layout ().addWidget (self ._key_selection_widget .native )
88-
8980 @property
9081 def x_axis_key (self ) -> Optional [str ]:
9182 """Key to access x axis data from the FeaturesTable"""
You can’t perform that action at this time.
0 commit comments