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.
1 parent 835220b commit e5d01aaCopy full SHA for e5d01aa
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