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

Skip to content

Commit c4a7b28

Browse files
committed
axes.py : a slight change in the numpy version checking code
svn path=/trunk/matplotlib/; revision=6504
1 parent 2fb47bc commit c4a7b28

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/matplotlib/axes.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6551,8 +6551,7 @@ def hist(self, x, bins=10, range=None, normed=False, cumulative=False,
65516551
binsgiven = (cbook.iterable(bins) or range != None)
65526552

65536553
# check the version of the numpy
6554-
np_version = float(".".join(np.__version__.split(".")[:2]))
6555-
if np_version < 1.2: # version 1.1
6554+
if np.__version__ < "1.2": # version 1.1
65566555
hist_kwargs = dict(range=range,
65576556
normed=bool(normed), new=True)
65586557
else: # version 1.2 and later, drop new=True

0 commit comments

Comments
 (0)