Revision: 8891 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8891&view=rev Author: weathergod Date: 2011-01-05 17:44:17 +0000 (Wed, 05 Jan 2011)
Log Message: ----------- Applying a similar fix to r8873 which seemed to only have been applied to the development branch. This fixes a math domain error when using log scales. Modified Paths: -------------- branches/v1_0_maint/lib/matplotlib/ticker.py Modified: branches/v1_0_maint/lib/matplotlib/ticker.py =================================================================== --- branches/v1_0_maint/lib/matplotlib/ticker.py 2011-01-05 16:29:53 UTC (rev 8890) +++ branches/v1_0_maint/lib/matplotlib/ticker.py 2011-01-05 17:44:17 UTC (rev 8891) @@ -1194,7 +1194,7 @@ return False if x == 0.0: return True - lx = math.log(x)/math.log(base) + lx = math.log(abs(x))/math.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