Skip to content

Commit 921aa41

Browse files
committed
Merge pull request #5297 from perimosocordiae/patch-1
BUG: recent numpy fails on non-int shape
1 parent e7e0807 commit 921aa41

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/matplotlib/backends/backend_webagg_core.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,7 @@ def get_renderer(self, cleared=None):
249249
# so that we can do things such as produce a diff image
250250
# in get_diff_image
251251
_, _, w, h = self.figure.bbox.bounds
252+
w, h = int(w), int(h)
252253
key = w, h, self.figure.dpi
253254
try:
254255
self._lastKey, self._renderer

0 commit comments

Comments
 (0)