File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 3
3
from matplotlib .figure import Figure
4
4
from qtpy .QtWidgets import QVBoxLayout , QWidget
5
5
6
+ import matplotlib as mpl
7
+ mpl .rc ('axes' , edgecolor = 'white' )
8
+ mpl .rc ('axes' , facecolor = '#262930' )
9
+ mpl .rc ('axes' , labelcolor = 'white' )
10
+ mpl .rc ('savefig' , facecolor = '#262930' )
11
+ mpl .rc ('text' , color = 'white' )
12
+
13
+ mpl .rc ('xtick' , color = 'white' )
14
+ mpl .rc ('ytick' , color = 'white' )
6
15
__all__ = ["NapariMPLWidget" ]
7
16
8
17
@@ -31,7 +40,8 @@ def __init__(self, napari_viewer: napari.viewer.Viewer):
31
40
32
41
self .viewer = napari_viewer
33
42
self .figure = Figure (figsize = (5 , 3 ), tight_layout = True )
34
- self .canvas = FigureCanvas (self .figure )
43
+ self .canvas = FigureCanvas ()
44
+ self .canvas .figure .patch .set_facecolor ('#262930' )
35
45
self .toolbar = NavigationToolbar2QT (self .canvas , self )
36
46
self .axes = self .canvas .figure .subplots ()
37
47
You can’t perform that action at this time.
0 commit comments