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

Skip to content

Commit cc6fb08

Browse files
committed
use png icon on gtk for win32
svn path=/trunk/matplotlib/; revision=7258
1 parent accbd28 commit cc6fb08

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/matplotlib/backends/backend_gtk.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1148,7 +1148,7 @@ def on_dialog_lineprops_cancelbutton_clicked(self, button):
11481148
# versions of pygtk, so we have to use a PNG file instead.
11491149
try:
11501150

1151-
if gtk.pygtk_version < (2, 8, 0):
1151+
if gtk.pygtk_version < (2, 8, 0) or sys.platform == 'win32':
11521152
icon_filename = 'matplotlib.png'
11531153
else:
11541154
icon_filename = 'matplotlib.svg'

lib/matplotlib/lines.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -335,10 +335,10 @@ def get_fillstyle(self):
335335

336336
def set_fillstyle(self, fs):
337337
"""
338-
Set the marker fill style; full means fill the whole marker.
339-
The other options are for half fills
338+
Set the marker fill style; 'full' means fill the whole marker.
339+
The other options are for half filled markers
340340
341-
ACCEPTS: string ['full' | 'left' | 'right' | 'bottom' | 'top']
341+
ACCEPTS: ['full' | 'left' | 'right' | 'bottom' | 'top']
342342
"""
343343
assert fs in ['full', 'left' , 'right' , 'bottom' , 'top']
344344
self._fillstyle = fs

0 commit comments

Comments
 (0)