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...
Sorry if it hasn't helped.
Johan

2008/6/24 Darren Dale <dsdale24@gmail.com>:
On Monday 23 June 2008 23:37:09 Adam Mercer wrote:
> Hi
>
> Just upgraded to matplotlib-0.98.1, and a code that worked with 0.98.0
> is now failing with the following error:

Please, include a brief standalone script that demonstrates the problem when
reporting problems.

> Traceback (most recent call last):
>   File "./plot_workout.py", line 126, in <module>
>     time_plot = time_axes.plot_date(times_dates, times, 'bo-')
>   File "/opt/local/lib/python2.5/site-packages/matplotlib/axes.py",
> line 3081, in plot_date
>     self.xaxis_date(tz)
>   File "/opt/local/lib/python2.5/site-packages/matplotlib/axes.py",
> line 2015, in xaxis_date
>     locator.refresh()
>   File "/opt/local/lib/python2.5/site-packages/matplotlib/dates.py",
> line 540, in refresh
>     dmin, dmax = self.viewlim_to_dt()
>   File "/opt/local/lib/python2.5/site-packages/matplotlib/dates.py",
> line 436, in viewlim_to_dt
>     return num2date(vmin, self.tz), num2date(vmax, self.tz)
>   File "/opt/local/lib/python2.5/site-packages/matplotlib/dates.py",
> line 233, in num2date
>     if not cbook.iterable(x): return _from_ordinalf(x, tz)
>   File "/opt/local/lib/python2.5/site-packages/matplotlib/dates.py",
> line 156, in _from_ordinalf
>     dt = datetime.datetime.fromordinal(ix)
> ValueError: ordinal must be >= 1
>
> Any ideas?
>
> Cheers
>
> Adam
>
> -------------------------------------------------------------------------
> 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



-------------------------------------------------------------------------
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