On 5/24/10 10:24 AM, Christopher Barker wrote:
> Benjamin Root wrote:
>    
>> On Fri, May 21, 2010 at 5:16 PM, Jeff Whitaker<jsw...@fastmail.fm
>>      Ben:  That's why you should use the basemap methods where possible
>>      (they handle these things for you).
>>
>>
>> Yeah, that wasn't possible in my case.  In addition, not all pyplot
>> plotting functions are available (nor do I expect Basemap to have all of
>> them available).
>>      
> Though it would be nice to add more as we need them. I assume Jeff will
> take contributions.
>
> I need to be able to draw a filled polygon from coordinates in memory,
> for instance, but didn't see a way to do this directly. If I get a
> chance, I will look into .drawshapefile(), and figure I can see how to
> do it from there.
>
> -Chris
>
>
>
>    
Chris:  If you have the map projection coordinates of the polygon, you 
can just use the pyplot commands or axes methods, and then use the 
Basemap set_axes_limits method to make sure the aspect ratio and axes 
limits get reset correctly.

-Jeff

-- 
Jeffrey S. Whitaker         Phone  : (303)497-6313
Meteorologist               FAX    : (303)497-6449
NOAA/OAR/PSD  R/PSD1        Email  : jeffrey.s.whita...@noaa.gov
325 Broadway                Office : Skaggs Research Cntr 1D-113
Boulder, CO, USA 80303-3328 Web    : http://tinyurl.com/5telg


------------------------------------------------------------------------------

_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to