From 25c3f200b014653c1309f02ea42ccd9c2e11da9b Mon Sep 17 00:00:00 2001 From: ClarkeAC <120437484+ClarkeAC@users.noreply.github.com> Date: Mon, 8 Jul 2024 02:58:05 +0000 Subject: [PATCH] change FiCureCanvasQT widget size from none neg to pos --- lib/matplotlib/backends/backend_qt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/matplotlib/backends/backend_qt.py b/lib/matplotlib/backends/backend_qt.py index a93b37799971..6603883075d4 100644 --- a/lib/matplotlib/backends/backend_qt.py +++ b/lib/matplotlib/backends/backend_qt.py @@ -492,7 +492,7 @@ def _draw_idle(self): if not self._draw_pending: return self._draw_pending = False - if self.height() < 0 or self.width() < 0: + if self.height() <= 0 or self.width() <= 0: return try: self.draw()