Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e714c77

Browse filesBrowse files
tacaswelltonysyu
authored andcommitted
added python3 emulation code + six + fixed up print calls
1 parent d372a35 commit e714c77
Copy full SHA for e714c77

File tree

Expand file treeCollapse file tree

1 file changed

+8
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+8
-2
lines changed

‎lib/matplotlib/style/core.py

Copy file name to clipboardExpand all lines: lib/matplotlib/style/core.py
+8-2Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
from __future__ import (absolute_import, division, print_function,
2+
unicode_literals)
3+
4+
import six
5+
from six.moves import reduce, xrange, zip
6+
17
"""
28
Core functions and attributes for the matplotlib style library:
39
@@ -54,8 +60,8 @@ def use(name):
5460
else:
5561
try:
5662
rc = rc_params_from_file(style, use_default_template=False)
57-
print rc
58-
print type(rc)
63+
print(rc)
64+
print(type(rc))
5965
mpl.rcParams.update(rc)
6066
except:
6167
msg = ("'%s' not found in the style library and input is "

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.