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 33from matplotlib .figure import Figure
44from qtpy .QtWidgets import QVBoxLayout , QWidget
55
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' )
615__all__ = ["NapariMPLWidget" ]
716
817
@@ -31,7 +40,8 @@ def __init__(self, napari_viewer: napari.viewer.Viewer):
3140
3241 self .viewer = napari_viewer
3342 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' )
3545 self .toolbar = NavigationToolbar2QT (self .canvas , self )
3646 self .axes = self .canvas .figure .subplots ()
3747
You can’t perform that action at this time.
0 commit comments