We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 92e771d commit 163efb8Copy full SHA for 163efb8
lib/matplotlib/backends/backend_cairo.py
@@ -95,7 +95,7 @@ def set_context(self, ctx):
95
rect, *rest = ctx.copy_clip_rectangle_list()
96
if rest:
97
raise TypeError("Cannot infer surface size")
98
- size = rect.width, rect.height
+ _, _, *size = rect
99
ctx.restore()
100
self.gc.ctx = ctx
101
self.width, self.height = size
0 commit comments