Skip to content

Commit d8815fe

Browse files
committed
wx: Fix the zoom rubberband with toolmanager
1 parent 39f28cc commit d8815fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/backends/backend_wx.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1152,7 +1152,7 @@ def save_figure(self, *args):
11521152

11531153
def draw_rubberband(self, event, x0, y0, x1, y1):
11541154
height = self.canvas.figure.bbox.height
1155-
sf = 1 if wx.Platform == '__WXMSW__' else self.GetDPIScaleFactor()
1155+
sf = 1 if wx.Platform == '__WXMSW__' else self.canvas.GetDPIScaleFactor()
11561156
self.canvas._rubberband_rect = (x0/sf, (height - y0)/sf,
11571157
x1/sf, (height - y1)/sf)
11581158
self.canvas.Refresh()

0 commit comments

Comments
 (0)