Skip to content

Commit 5e66acc

Browse files
committed
Merge remote-tracking branch 'matplotlib/v2.x'
2 parents 22cf7e0 + 97ad03b commit 5e66acc

File tree

5 files changed

+16
-7
lines changed

5 files changed

+16
-7
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ env:
5656
matrix:
5757
include:
5858
- python: 2.7
59-
env: MOCK=mock NUMPY=numpy==1.6
59+
env: MOCK=mock NUMPY=numpy==1.7.1
6060
- python: 3.4
6161
env: PYTHON_ARGS=-OO
6262
- python: 3.5

examples/showcase/mandelbrot.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@ def mandelbrot_set(xmin, xmax, ymin, ymax, xn, yn, maxiter, horizon=2.0):
4747
# This line will generate warnings for null values but it is faster to
4848
# process them afterwards using the nan_to_num
4949
with np.errstate(invalid='ignore'):
50-
M = np.nan_to_num(N + 1 - np.log(np.log(abs(Z)))/np.log(2) + log_horizon)
50+
M = np.nan_to_num(N + 1 -
51+
np.log(np.log(abs(Z)))/np.log(2) +
52+
log_horizon)
5153

5254
dpi = 72
5355
width = 10
@@ -65,9 +67,9 @@ def mandelbrot_set(xmin, xmax, ymin, ymax, xn, yn, maxiter, horizon=2.0):
6567

6668
# Some advertisement for matplotlib
6769
year = time.strftime("%Y")
68-
major, minor, micro = matplotlib.__version__.split('.', maxsplit=2)
70+
major, minor, micro = matplotlib.__version__.split('.', 2)
6971
text = ("The Mandelbrot fractal set\n"
70-
"Rendered with matplotlib %s.%s, %s http://matplotlib.org"
72+
"Rendered with matplotlib %s.%s, %s - http://matplotlib.org"
7173
% (major, minor, year))
7274
ax.text(xmin+.025, ymin+.025, text, color="white", fontsize=12, alpha=0.5)
7375

lib/matplotlib/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@
138138
__version__ = str(get_versions()['version'])
139139
del get_versions
140140

141-
__version__numpy__ = str('1.6') # minimum required numpy version
141+
__version__numpy__ = str('1.7.1') # minimum required numpy version
142142

143143
__bibtex__ = """@Article{Hunter:2007,
144144
Author = {Hunter, J. D.},

setupext.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -973,10 +973,10 @@ def add_flags(self, ext):
973973
'NPY_1_7_API_VERSION'))
974974

975975
def get_setup_requires(self):
976-
return ['numpy>=1.6']
976+
return ['numpy>=1.7.1']
977977

978978
def get_install_requires(self):
979-
return ['numpy>=1.6']
979+
return ['numpy>=1.7.1']
980980

981981

982982
class LibAgg(SetupPackage):

tools/gh_api.py

+7
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,13 @@ def get_auth_token():
4343
if token is not None:
4444
return token
4545

46+
try:
47+
with open(os.path.join(os.path.expanduser('~'), '.ghoauth')) as f:
48+
token, = f
49+
return token
50+
except:
51+
pass
52+
4653
import keyring
4754
token = keyring.get_password('github', fake_username)
4855
if token is not None:

0 commit comments

Comments
 (0)