diff --git a/src/napari_matplotlib/base.py b/src/napari_matplotlib/base.py index 103e10d8..3af675f7 100644 --- a/src/napari_matplotlib/base.py +++ b/src/napari_matplotlib/base.py @@ -15,7 +15,6 @@ # Icons modified from # https://github.com/matplotlib/matplotlib/tree/main/lib/matplotlib/mpl-data/images ICON_ROOT = Path(__file__).parent / "icons" -NAPARI_WINDOW_COLOR = "#262930" __all__ = ["NapariMPLWidget"] @@ -49,7 +48,7 @@ def __init__(self, napari_viewer: napari.viewer.Viewer): self.viewer = napari_viewer self.canvas = FigureCanvas() - self.canvas.figure.patch.set_facecolor(NAPARI_WINDOW_COLOR) + self.canvas.figure.patch.set_facecolor("none") self.canvas.figure.set_layout_engine("constrained") self.toolbar = NapariNavigationToolbar(self.canvas, self) self._replace_toolbar_icons() @@ -126,16 +125,12 @@ def draw(self) -> None: """ def apply_napari_colorscheme(self): - """ - Apply napari-compatible colorscheme to the axes object. - """ + """Apply napari-compatible colorscheme to the axes object.""" if self.axes is None: return - # changing color of axes background to napari main window color - self.canvas.figure.patch.set_facecolor(NAPARI_WINDOW_COLOR) - - # changing color of plot background to napari main window color - self.axes.set_facecolor(NAPARI_WINDOW_COLOR) + # changing color of axes background to transparent + self.canvas.figure.patch.set_facecolor("none") + self.axes.set_facecolor("none") # changing colors of all axes [ pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy