Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Backport PR #26545: Fix size inferral when using cairocffi
  • Loading branch information
ksunden authored and meeseeksmachine committed Aug 18, 2023
commit 80b704389553f6088093fc2f8a364402b5f5bd94
2 changes: 1 addition & 1 deletion lib/matplotlib/backends/backend_cairo.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def set_context(self, ctx):
rect, *rest = ctx.copy_clip_rectangle_list()
if rest:
raise TypeError("Cannot infer surface size")
size = rect.width, rect.height
_, _, *size = rect
ctx.restore()
self.gc.ctx = ctx
self.width, self.height = size
Expand Down