troubles with plot_date

Hello -

I am trying to plot two sets of data on one graph, using plot_date.
But I get an error.
It is easy to replicate, by calling the plot_date function twice.
Is this supposed to work?

from pylab import *

plot_date(linspace(726468,726668,4),linspace(0,1,4))
plot_date(linspace(726468,726668,4),linspace(0,1,4))

And I get the error:

Traceback (most recent call last):
File “<pyshell#2>”, line 1, in ?

plot_date(linspace(726468,726668,4),linspace(0,1,4))

File “C:\Python24\Lib\site-packages\matplotlib\pylab.py”, line 2064, in plot_date
ret = gca().plot_date(*args, **kwargs)
File “C:\Python24\lib\site-packages\matplotlib\axes.py”, line 2395, in plot_date

self.xaxis_date(tz)

File “C:\Python24\lib\site-packages\matplotlib\axes.py”, line 1564, in xaxis_date
formatter = AutoDateFormatter(locator)
UnboundLocalError: local variable ‘locator’ referenced before assignment

Any ideas?
Thanks, Mark

Fixed in svn

···

On 3/16/07, Mark Bakker <markbak@...287...> wrote:

Hello -

I am trying to plot two sets of data on one graph, using plot_date.
But I get an error.
It is easy to replicate, by calling the plot_date function twice.
Is this supposed to work?