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

Skip to content

Commit ad2ddab

Browse files
committed
Fixes icon clipping issue with the NavigationToolbar2 in wxagg backend for wxpython 4.1.0.
1 parent d541b6d commit ad2ddab

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
@@ -1105,6 +1105,8 @@ class NavigationToolbar2Wx(NavigationToolbar2, wx.ToolBar):
11051105
def __init__(self, canvas):
11061106
wx.ToolBar.__init__(self, canvas.GetParent(), -1)
11071107

1108+
if 'wxMac' in wx.PlatformInfo:
1109+
self.SetToolBitmapSize((24, 24))
11081110
self.wx_ids = {}
11091111
for text, tooltip_text, image_file, callback in self.toolitems:
11101112
if text is None:

0 commit comments

Comments
 (0)