Revision: 8873
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8873&view=rev
Author:   mdboom
Date:     2011-01-03 14:53:20 +0000 (Mon, 03 Jan 2011)

Log Message:
-----------
[3143748] Math domain error in ticker.py is_decade()

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

Modified: trunk/matplotlib/lib/matplotlib/ticker.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/ticker.py   2011-01-03 13:45:21 UTC (rev 
8872)
+++ trunk/matplotlib/lib/matplotlib/ticker.py   2011-01-03 14:53:20 UTC (rev 
8873)
@@ -1193,7 +1193,7 @@
         return False
     if x == 0.0:
         return True
-    lx = np.log(x)/np.log(base)
+    lx = np.log(np.abs(x))/np.log(base)
     return is_close_to_int(lx)
 
 def is_close_to_int(x):


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Matplotlib-checkins mailing list
Matplotlib-checkins@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to