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
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to