Jeff Whitaker wrote:
> Michael Droettboom wrote:
>> Thanks for finding this. It was an x,y reversal indexing the mesh
>> array. Fixed in r4565.
>>
>> Cheers,
>> Mike
>>
>> Jeff Whitaker wrote:
>>>
>>> Hi Michael: I've been testing basemap with the transforms branch.
>>> All the examples now run, but the ones that use pcolormesh don't
>>> work correctly. I've attached an example. In the trunk, using
>>> either pcolor or pcolormesh produce an identical plot. In the
>>> transforms branch, using pcolor produces the correct plot, but using
>>> pcolormesh seems to scramble the image.
>>>
>>> -Jeff
>>>
>>
> OK - since you fixed that one so fast, here's another one! Seems like
> images don't quite fill up the entire axes - running this script with
> the transforms branch you'll see a white strip around the top and
> right side of the image.
>
> -Jeff
>
> P.S. the data this script needs is in the basemap examples directory.
>
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
--
Jeffrey S. Whitaker Phone : (303)497-6313
Meteorologist FAX : (303)497-6449
NOAA/OAR/PSD R/PSD1 Email : [EMAIL PROTECTED]
325 Broadway Office : Skaggs Research Cntr 1D-124
Boulder, CO, USA 80303-3328 Web : http://tinyurl.com/5telg
-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel