Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d8815fe

Browse filesBrowse files
committed
wx: Fix the zoom rubberband with toolmanager
1 parent 39f28cc commit d8815fe
Copy full SHA for d8815fe

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎lib/matplotlib/backends/backend_wx.py

Copy file name to clipboardExpand all lines: lib/matplotlib/backends/backend_wx.py
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.