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.

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Matplotlib-checkins mailing list
Matplotlib-checkins@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to