On Tue, Jun 24, 2008 at 6:43 AM, Johan Mazel <[EMAIL PROTECTED]> wrote: > I used to have such errors when I was trying to display empty vectors. > But since you're saying that the script work on previous version of > Matplotlib...
I recently made some changes to try and support a use-case where the user has no data and sets ax.set_xdate and later plots some date data. Eg, the following used to fail on the call to xaxis_date because the default data/viewlim are 0..1 import datetime import matplotlib.pyplot as plt dt = datetime.date x = dt(2002,1,1), dt(2003,1,1), dt(2004,1,1) fig = plt.figure() ax = fig.add_subplot(111) ax.xaxis_date() ax.plot(x, [1,2,3]) fig.autofmt_xdate() plt.show() so it is possible these edits are causing the change Adam is describing (even though they were designed to fix it), but as Darren notes we will need a standalone script since our examples are working fine and it is hard to debug in the void. JDH ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users