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.
2 parents 73985d9 + 80b7043 commit ade5315Copy full SHA for ade5315
lib/matplotlib/backends/backend_cairo.py
@@ -96,7 +96,7 @@ def set_context(self, ctx):
96
rect, *rest = ctx.copy_clip_rectangle_list()
97
if rest:
98
raise TypeError("Cannot infer surface size")
99
- size = rect.width, rect.height
+ _, _, *size = rect
100
ctx.restore()
101
self.gc.ctx = ctx
102
self.width, self.height = size
0 commit comments