Has anyone written datetick()?

I just had a user ask me if the matlab function datetick exists in MPL. I don't believe that it does so I was wondering if anyone had written their own implementation of it?

Here's the help text from the matlab web site:
http://www.mathworks.com/access/helpdesk/help/techdoc/ref/datetick.html

···

---------------
datetick

Label tick lines using dates

Syntax

datetick(tickaxis)
datetick(tickaxis,dateform)
datetick(...,'keeplimits')
datetick(...,'keepticks')
datetick(axes_handle,...)

Description

datetick(tickaxis) labels the tick lines of an axis using dates, replacing the default numeric labels. tickaxis is the string 'x', 'y', or 'z'. The default is 'x'. datetick selects a label format based on the minimum and maximum limits of the specified axis.

[...]
---------------

If no one has an existing implementation we'll probably write one ourselves.

Thanks,
Ted
Ted Drain Jet Propulsion Laboratory ted.drain@...369...

Ted Drain wrote:

I just had a user ask me if the matlab function datetick exists in MPL.

Check out plot_date(). Far more flexible than datetick(), IMHO. There are four date_demo*.py files in matplotlib/examples. See also section 5.4 of the on line manual.

For the non-MPL users, datetick() actually changes the labeling on an axis from MATLAB numerical dates to various date formats.