def axisinfo(unit):
if unit=='<STR_LIT:date>':<EOL><INDENT>majloc = AutoDateLocator()<EOL>majfmt = AutoDateFormatter(majloc)<EOL>return units.AxisInfo(<EOL>majloc = majloc,<EOL>majfmt = majfmt,<EOL>label='<STR_LIT>',<EOL>)<EOL><DEDENT>else: return None<EOL>
return the unit AxisInfo