The transforms branch has seen very little outside of the matplotlib 
examples, so it's good to find all of these error cases.  Fixed in r4569.

Cheers,
Mike

> Michael:  And one more - contourf will die if you there are no contours 
> at the requested levels.  The error message looks like this:
> 
> Traceback (most recent call last):
>  File "plotprecip.py", line 52, in <module>
>    cs = m.contourf(x,y,data,clevs,cmap=cm.s3pcpn)
>  File "/Users/jsw/lib/python/matplotlib/toolkits/basemap/basemap.py", 
> line 2425, in contourf
>    CS = ax.contourf(x,y,data,*args,**kwargs)
>  File "/Users/jsw/lib/python/matplotlib/axes.py", line 5017, in contourf
>    return mcontour.ContourSet(self, *args, **kwargs)
>  File "/Users/jsw/lib/python/matplotlib/contour.py", line 460, in __init__
>    self.ax.add_collection(col)
>  File "/Users/jsw/lib/python/matplotlib/axes.py", line 1140, in 
> add_collection
>    self.update_datalim(collection.get_datalim(self.transData))
>  File "/Users/jsw/lib/python/matplotlib/collections.py", line 142, in 
> get_datalim
>    offsets, transOffset.frozen())
>  File "/Users/jsw/lib/python/matplotlib/path.py", line 481, in 
> get_path_collection_extents
>    raise ValueError("No paths provided")
> 
> To trigger this, try running the plotprecip.py basemap example.
> 
> -Jeff
> 

-- 
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA

-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to