Revision: 6504
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=6504&view=rev
Author:   leejjoon
Date:     2008-12-07 20:52:13 +0000 (Sun, 07 Dec 2008)

Log Message:
-----------
axes.py : a slight change in the numpy version checking code

Modified Paths:
--------------
    trunk/matplotlib/lib/matplotlib/axes.py

Modified: trunk/matplotlib/lib/matplotlib/axes.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/axes.py     2008-12-07 20:40:12 UTC (rev 
6503)
+++ trunk/matplotlib/lib/matplotlib/axes.py     2008-12-07 20:52:13 UTC (rev 
6504)
@@ -6551,8 +6551,7 @@
         binsgiven = (cbook.iterable(bins) or range != None)
 
         # check the version of the numpy
-        np_version = float(".".join(np.__version__.split(".")[:2]))
-        if np_version < 1.2: # version 1.1 
+        if np.__version__ < "1.2": # version 1.1 
             hist_kwargs = dict(range=range,
                                normed=bool(normed), new=True)
         else: # version 1.2 and later, drop new=True


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
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to