Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9ea14b1

Browse files
committed
FIX: Qt expects ints not floats
1 parent a0a1294 commit 9ea14b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/backends/backend_qt.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -593,8 +593,8 @@ def resize(self, width, height):
593593
height /= self.canvas.device_pixel_ratio
594594
extra_width = self.window.width() - self.canvas.width()
595595
extra_height = self.window.height() - self.canvas.height()
596-
self.canvas.resize(width, height)
597-
self.window.resize(width + extra_width, height + extra_height)
596+
self.canvas.resize(round(width), round(height))
597+
self.window.resize(round(width + extra_width), round(height + extra_height))
598598

599599
def show(self):
600600
self.window.show()

0 commit comments

Comments
 (0)