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

Skip to content

Commit ff1515b

Browse files
Carreaupelson
authored andcommitted
Icon for font awesome 3.2.1 and 4
Should fix matplotlib#3606
1 parent ee3d2fb commit ff1515b

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

lib/matplotlib/backends/backend_nbagg.py

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -81,14 +81,17 @@ def connection_info():
8181
return '\n'.join(result)
8282

8383

84-
# Note: Version 3.2 icons, not the later 4.0 ones.
84+
# Note: Version 3.2 and 4.x icons
8585
# http://fontawesome.io/3.2.1/icons/
86+
# http://fontawesome.io/
87+
# the `fa fa-xxx` part targets font-awesome 4, (IPython 3.x)
88+
# the icon-xxx targets font awesome 3.21 (IPython 2.x)
8689
_FONT_AWESOME_CLASSES = {
87-
'home': 'icon-home',
88-
'back': 'icon-arrow-left',
89-
'forward': 'icon-arrow-right',
90-
'zoom_to_rect': 'icon-check-empty',
91-
'move': 'icon-move',
90+
'home': 'fa fa-home icon-home',
91+
'back': 'fa fa-arrow-left icon-arrow-left',
92+
'forward': 'fa fa--arrow-right icon-arrow-right',
93+
'zoom_to_rect': 'fa fa-square-o icon-check-empty',
94+
'move': 'fa fa-arrows icon-move',
9295
None: None
9396
}
9497

0 commit comments

Comments
 (0)