From 163efb8a9fa09f9b32734ac2a2d60cec6a00171e Mon Sep 17 00:00:00 2001 From: Kyle Sunden Date: Fri, 18 Aug 2023 13:35:51 -0500 Subject: [PATCH] Backport PR #26545: Fix size inferral when using cairocffi --- lib/matplotlib/backends/backend_cairo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/matplotlib/backends/backend_cairo.py b/lib/matplotlib/backends/backend_cairo.py index c733f3f9d3d7..421d857b0a03 100644 --- a/lib/matplotlib/backends/backend_cairo.py +++ b/lib/matplotlib/backends/backend_cairo.py @@ -95,7 +95,7 @@ def set_context(self, ctx): rect, *rest = ctx.copy_clip_rectangle_list() if rest: raise TypeError("Cannot infer surface size") - size = rect.width, rect.height + _, _, *size = rect ctx.restore() self.gc.ctx = ctx self.width, self.height = size 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