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

Skip to content

Commit 7a2a049

Browse files
authored
Merge pull request #17328 from jbhopkins/wx_4p10
Fixes icon clipping issue with WxAgg NavigationToolbar2 for wxpython 4.1.0
2 parents e70c6f8 + ad2ddab commit 7a2a049

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/matplotlib/backends/backend_wx.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1103,6 +1103,8 @@ class NavigationToolbar2Wx(NavigationToolbar2, wx.ToolBar):
11031103
def __init__(self, canvas):
11041104
wx.ToolBar.__init__(self, canvas.GetParent(), -1)
11051105

1106+
if 'wxMac' in wx.PlatformInfo:
1107+
self.SetToolBitmapSize((24, 24))
11061108
self.wx_ids = {}
11071109
for text, tooltip_text, image_file, callback in self.toolitems:
11081110
if text is None:

0 commit comments

Comments
 (0)