|
From: <mme...@us...> - 2008-12-12 13:58:34
|
Revision: 6589
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=6589&view=rev
Author: mmetz_bn
Date: 2008-12-12 13:58:24 +0000 (Fri, 12 Dec 2008)
Log Message:
-----------
fix warning in hist for numpy 1.2
Modified Paths:
--------------
branches/v0_98_5_maint/CHANGELOG
branches/v0_98_5_maint/lib/matplotlib/axes.py
Modified: branches/v0_98_5_maint/CHANGELOG
===================================================================
--- branches/v0_98_5_maint/CHANGELOG 2008-12-12 13:42:22 UTC (rev 6588)
+++ branches/v0_98_5_maint/CHANGELOG 2008-12-12 13:58:24 UTC (rev 6589)
@@ -1,3 +1,5 @@
+2008-12-12 Fixed warning in hist() with numpy 1.2 - MM
+
=================================================================
2008-12-09 Released 0.98.5 at svn r6573
Modified: branches/v0_98_5_maint/lib/matplotlib/axes.py
===================================================================
--- branches/v0_98_5_maint/lib/matplotlib/axes.py 2008-12-12 13:42:22 UTC (rev 6588)
+++ branches/v0_98_5_maint/lib/matplotlib/axes.py 2008-12-12 13:58:24 UTC (rev 6589)
@@ -6568,10 +6568,10 @@
binsgiven = (cbook.iterable(bins) or range != None)
# check the version of the numpy
- if np.__version__ < "1.2": # version 1.1
+ if np.__version__ < "1.3": # version 1.1 and 1.2
hist_kwargs = dict(range=range,
normed=bool(normed), new=True)
- else: # version 1.2 and later, drop new=True
+ else: # version 1.3 and later, drop new=True
hist_kwargs = dict(range=range,
normed=bool(normed))
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|