@@ -125,6 +125,7 @@ def test_dpi_ratio_change():
125
125
size = qt_canvas .size ()
126
126
127
127
qt_canvas .manager .show ()
128
+ qt_canvas .draw ()
128
129
qApp .processEvents ()
129
130
130
131
# The DPI and the renderer width/height change
@@ -133,8 +134,8 @@ def test_dpi_ratio_change():
133
134
assert qt_canvas .renderer .height == 720
134
135
135
136
# The actual widget size and figure physical size don't change
136
- assert size .width () == 200
137
- assert size .height () == 80
137
+ assert size .width () == 600
138
+ assert size .height () == 240
138
139
assert_equal (qt_canvas .get_width_height (), (600 , 240 ))
139
140
assert_equal (fig .get_size_inches (), (5 , 2 ))
140
141
@@ -151,7 +152,7 @@ def test_dpi_ratio_change():
151
152
assert qt_canvas .renderer .height == 480
152
153
153
154
# The actual widget size and figure physical size don't change
154
- assert size .width () == 200
155
- assert size .height () == 80
155
+ assert size .width () == 600
156
+ assert size .height () == 240
156
157
assert_equal (qt_canvas .get_width_height (), (600 , 240 ))
157
158
assert_equal (fig .get_size_inches (), (5 , 2 ))
0 commit comments