We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0174cae commit 2b454b7Copy full SHA for 2b454b7
lib/matplotlib/backends/_backend_tk.py
@@ -646,8 +646,8 @@ def _set_image_for_button(self, button):
646
# Allow _image_file to be relative to Matplotlib's "images" data
647
# directory.
648
path_regular = cbook._get_data_path('images', button._image_file)
649
- path_large = cbook._get_data_path(
650
- 'images', button._image_file.replace('.png', '_large.png'))
+ path_large = path_regular.with_name(
+ button._image_file.replace('.png', '_large.png'))
651
size = button.winfo_pixels('18p')
652
# Use the high-resolution (48x48 px) icon if it exists and is needed
653
with Image.open(path_large if (size > 24 and path_large.exists())
0 commit comments