Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ade5315

Browse files
authored
Merge pull request #26549 from meeseeksmachine/auto-backport-of-pr-26545-on-v3.7.x
Backport PR #26545 on branch v3.7.x (Fix size inferral when using cairocffi)
2 parents 73985d9 + 80b7043 commit ade5315

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/backends/backend_cairo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def set_context(self, ctx):
9696
rect, *rest = ctx.copy_clip_rectangle_list()
9797
if rest:
9898
raise TypeError("Cannot infer surface size")
99-
size = rect.width, rect.height
99+
_, _, *size = rect
100100
ctx.restore()
101101
self.gc.ctx = ctx
102102
self.width, self.height = size

0 commit comments

Comments
 (0)