From: <md...@us...> - 2008-11-24 20:12:59
|
Revision: 6442 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=6442&view=rev Author: mdboom Date: 2008-11-24 20:12:55 +0000 (Mon, 24 Nov 2008) Log Message: ----------- [ 2314869 ] Log base-2 axes fail with certain axis limits Modified Paths: -------------- trunk/matplotlib/CHANGELOG trunk/matplotlib/lib/matplotlib/ticker.py Modified: trunk/matplotlib/CHANGELOG =================================================================== --- trunk/matplotlib/CHANGELOG 2008-11-24 03:53:14 UTC (rev 6441) +++ trunk/matplotlib/CHANGELOG 2008-11-24 20:12:55 UTC (rev 6442) @@ -1,3 +1,5 @@ +2008-11-24 Fix crash in log ticking. - MGD + 2008-11-20 Added some static helper methods BrokenHBarCollection.span_masked and PolyCollection.fill_between_where for visualizing logical Modified: trunk/matplotlib/lib/matplotlib/ticker.py =================================================================== --- trunk/matplotlib/lib/matplotlib/ticker.py 2008-11-24 03:53:14 UTC (rev 6441) +++ trunk/matplotlib/lib/matplotlib/ticker.py 2008-11-24 20:12:55 UTC (rev 6442) @@ -1037,7 +1037,7 @@ decades = np.arange(math.floor(vmin), math.ceil(vmax)+stride, stride) - if len(subs) > 1 or subs[0] != 1.0: + if len(subs) > 1 or (len(subs == 1) and subs[0] != 1.0): ticklocs = [] for decadeStart in b**decades: ticklocs.extend( subs*decadeStart ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |