|
From: <md...@us...> - 2011-01-03 14:53:26
|
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.
|