Thanks to visit codestin.com Credit goes to github.com
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 f95e35a + 163efb8 commit 5091c36Copy full SHA for 5091c36
1 file changed
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