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

Skip to content

Commit bfd8fa7

Browse files
committed
Merged revisions 6589 via svnmerge from
https://matplotlib.svn.sourceforge.net/svnroot/matplotlib/branches/v0_98_5_maint ........ r6589 | mmetz_bn | 2008-12-12 14:58:24 +0100 (Fri, 12 Dec 2008) | 1 line fix warning in hist for numpy 1.2 ........ svn path=/trunk/matplotlib/; revision=6590
1 parent 66cf7a7 commit bfd8fa7

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

CHANGELOG

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
2008-12-12 Fixed warning in hist() with numpy 1.2 - MM
2+
13
2008-12-12 Removed external packages: configobj and enthought.traits
24
which are only required by the experimental traited config
35
and are somewhat out of date. If needed, install them

lib/matplotlib/axes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6573,10 +6573,10 @@ def hist(self, x, bins=10, range=None, normed=False, cumulative=False,
65736573
binsgiven = (cbook.iterable(bins) or range != None)
65746574

65756575
# check the version of the numpy
6576-
if np.__version__ < "1.2": # version 1.1
6576+
if np.__version__ < "1.3": # version 1.1 and 1.2
65776577
hist_kwargs = dict(range=range,
65786578
normed=bool(normed), new=True)
6579-
else: # version 1.2 and later, drop new=True
6579+
else: # version 1.3 and later, drop new=True
65806580
hist_kwargs = dict(range=range,
65816581
normed=bool(normed))
65826582

0 commit comments

Comments
 (0)