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 b31c736

Browse filesBrowse files
fix bug in previous commit
1 parent cff5f63 commit b31c736
Copy full SHA for b31c736

File tree

Expand file treeCollapse file tree

1 file changed

+3
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-2
lines changed

‎lib/matplotlib/backends/backend_wx.py

Copy file name to clipboardExpand all lines: lib/matplotlib/backends/backend_wx.py
+3-2Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -861,6 +861,7 @@ def _refresh_rubberband(self, previous_rubberband=None):
861861
left = min(point[0] for point in points)
862862
bottom = max(point[1] for point in points)
863863
right = max(point[0] for point in points)
864+
864865
if previous_rubberband:
865866
# extend by one pixel to avoid residuals on Mac OS
866867
if left > 0:
@@ -869,8 +870,8 @@ def _refresh_rubberband(self, previous_rubberband=None):
869870
top -= 1
870871
if bottom < self.figure.bbox.height - 1:
871872
bottom += 1
872-
if top < self.figure.bbox.width - 1:
873-
top += 1
873+
if right < self.figure.bbox.width - 1:
874+
right += 1
874875

875876
rect = wx.Rect(topLeft=wx.Point(left,top), bottomRight=wx.Point(right, bottom))
876877
self.Refresh(False, rect)

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.