|
From: <ef...@us...> - 2010-05-31 18:44:20
|
Revision: 8350
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8350&view=rev
Author: efiring
Date: 2010-05-31 18:44:13 +0000 (Mon, 31 May 2010)
Log Message:
-----------
LogLocator: when using dummy axis, don't try to access axes attribute
Modified Paths:
--------------
trunk/matplotlib/lib/matplotlib/ticker.py
Modified: trunk/matplotlib/lib/matplotlib/ticker.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/ticker.py 2010-05-31 00:14:03 UTC (rev 8349)
+++ trunk/matplotlib/lib/matplotlib/ticker.py 2010-05-31 18:44:13 UTC (rev 8350)
@@ -1234,7 +1234,8 @@
vmin, vmax = self.axis.get_view_interval()
- if self.axis.axes.name == 'polar':
+ # dummy axis has no axes attribute
+ if hasattr(self.axis, 'axes') and self.axis.axes.name == 'polar':
vmax = math.ceil(math.log(vmax) / math.log(b))
decades = np.arange(vmax - self.numdecs, vmax)
ticklocs = b ** decades
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|