File tree 1 file changed +6
-5
lines changed
1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 17
17
# Icons modified from
18
18
# https://github.com/matplotlib/matplotlib/tree/main/lib/matplotlib/mpl-data/images
19
19
ICON_ROOT = Path (__file__ ).parent / "icons"
20
- __all__ = ["MPLWidget " , "NapariMPLWidget" ]
20
+ __all__ = ["BaseNapariMPLWidget " , "NapariMPLWidget" ]
21
21
22
22
23
- class MPLWidget (QWidget ):
23
+ class BaseNapariMPLWidget (QWidget ):
24
24
"""
25
- Widget containing a Matplotlib canvas and toolbar.
25
+ Widget containing Matplotlib canvas and toolbar themed to match napari .
26
26
27
27
This creates a single FigureCanvas, which contains a single
28
- `~matplotlib.figure.Figure`, and an associated toolbar.
28
+ `~matplotlib.figure.Figure`, and an associated toolbar. Both of these
29
+ are customised to match the visual style of the main napari window.
29
30
It is not responsible for creating any Axes, because different
30
31
widgets may want to implement different subplot layouts.
31
32
"""
@@ -99,7 +100,7 @@ def _replace_toolbar_icons(self) -> None:
99
100
action .setIcon (QIcon (icon_path ))
100
101
101
102
102
- class NapariMPLWidget (MPLWidget ):
103
+ class NapariMPLWidget (BaseNapariMPLWidget ):
103
104
"""
104
105
Widget containing a Matplotlib canvas and toolbar.
105
106
You can’t perform that action at this time.
0 commit comments