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:
60
60
self .axes .legend ()
61
61
62
62
63
- class FeaturesHistogramWidget (NapariMPLWidget ):
63
+ class FeaturesHistogramWidget (SingleAxesWidget ):
64
64
n_layers_input = Interval (1 , 1 )
65
65
# All layers that have a .features attributes
66
66
input_layer_types = FEATURES_LAYER_TYPES
67
67
68
68
def __init__ (self , napari_viewer : napari .viewer .Viewer ):
69
69
super ().__init__ (napari_viewer )
70
- self .axes = self .canvas .figure .subplots ()
71
70
72
71
self ._key_selection_widget = magicgui (
73
72
self ._set_axis_keys ,
@@ -78,14 +77,6 @@ def __init__(self, napari_viewer: napari.viewer.Viewer):
78
77
79
78
self .update_layers (None )
80
79
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
-
89
80
@property
90
81
def x_axis_key (self ) -> Optional [str ]:
91
82
"""Key to access x axis data from the FeaturesTable"""
You can’t perform that action at this time.
0 commit comments