Folks,
I have a problem with xaxis_date in the SVN (rev2994)
#----------
def xaxis_date(self, tz=None):
"""Sets up x-axis ticks and labels that treat the x data as dates.
tz is the time zone to use in labeling dates. Defaults to rc value.
"""
thislocator = self.xaxis.get_major_locator()
if not isinstance(thislocator, DateLocator):
locator = AutoDateLocator(tz)
self.xaxis.set_major_locator(locator)
thisformatter = self.xaxis.get_major_formatter()
if not isinstance(thisformatter, DateFormatter):
formatter = AutoDateFormatter(locator)
self.xaxis.set_major_formatter(formatter)
#----------
The problem is that in the second if, locator can still be undefined if
thislocator was a DateLocator.
The first if could have a else clause:
#----
self.xaxis.set_major_locator(locator)
else:
locator = thislocator
#-----
Which seems to solve the problem
(Of course, the same apply to yaxis_date).
John, Eric, or whoever else has write access, could you take care of that ?
Thanks a lot in advance
P.
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Matplotlib-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users