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 3d2d072 + e5d01aa commit d85bc15Copy full SHA for d85bc15
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