From d6a8bb4cf7f2cf58b1a3e3378c2cad179b3d8b7f Mon Sep 17 00:00:00 2001 From: David Stansby Date: Wed, 19 Apr 2023 12:39:08 +0100 Subject: [PATCH 1/3] Erorr on warnings in tests --- pytest.ini | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 pytest.ini diff --git a/pytest.ini b/pytest.ini new file mode 100644 index 00000000..9e90ef7c --- /dev/null +++ b/pytest.ini @@ -0,0 +1,3 @@ +[pytest] +filterwarnings = + error From 81ff46e2a53af6bc5da0ec975ff6214a5537b5be Mon Sep 17 00:00:00 2001 From: David Stansby Date: Wed, 19 Apr 2023 12:45:14 +0100 Subject: [PATCH 2/3] Ignore vispy warning --- pytest.ini | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pytest.ini b/pytest.ini index 9e90ef7c..e3ef4b7d 100644 --- a/pytest.ini +++ b/pytest.ini @@ -1,3 +1,6 @@ [pytest] filterwarnings = error + + # Coming from vispy + ignore:distutils Version classes are deprecated:DeprecationWarning From 464aa5e865fb6be563579f37c2e2978584b6f8db Mon Sep 17 00:00:00 2001 From: David Stansby Date: Wed, 19 Apr 2023 12:49:10 +0100 Subject: [PATCH 3/3] Fix MPL deprecation warning --- src/napari_matplotlib/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/napari_matplotlib/base.py b/src/napari_matplotlib/base.py index b4d8c7cf..c580361d 100644 --- a/src/napari_matplotlib/base.py +++ b/src/napari_matplotlib/base.py @@ -57,7 +57,7 @@ def __init__(self, napari_viewer: napari.viewer.Viewer): self.viewer = napari_viewer self.canvas = FigureCanvas() - self.canvas.figure.set_tight_layout(True) + self.canvas.figure.set_layout_engine("constrained") self.canvas.figure.patch.set_facecolor("#262930") self.toolbar = NapariNavigationToolbar(self.canvas, self) self._replace_toolbar_icons() 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