Jeff Whitaker wrote:
> Ryan May wrote:
>> Hi,
>>
>> I've got (what seems to me) a nice clean, self-contained 
>> implementation of wind barbs plots.  I'd like to see if I can get this 
>> into matplotlib, as it would be very useful to the meteorology 
>> community.  I've borrowed heavily from Quiver for rounding out rough 
>> edges (like multiple calling signatures) as for templates for 
>> documentation.  The base implementation, though, seems much simpler 
>> (thanks to Mike's transforms) and is based more on scatter.
>>
>> Right now it monkey-patches Axes so that it can be a stand-alone file. 
>> Just running the file should give a good example of the expected output.
>>
>> My only concern up front is if a new axes method is appropriate, since 
>> this is somewhat domain specific.  But I'd like to at least get the 
>> new Collections class included, since otherwise, I have no idea how to 
>> get this distributed to the community at large.
>>
>> I welcome any comments/criticism to help improve this.
>>
>> Ryan
>>
> Ryan:  This looks great!  I fixed one typo (the "length" keyword was 
> mis-identified as "scale" in the docstring) and replace your example 
> with an adaption of the quiver_demo.py basemap example.

Thanks.  When this finally lands in matplotlib svn, do you need me to do 
the patch to add it to basemap?  If so, anything I should know?  Or will 
you just take care of it?

> I noticed that ticks on the barbs are so close that they are hard to 
> discern unless the linewidth is reduced.  I wonder if the spacing of the 
> ticks  could be added as a keyword, perhaps as a fraction of the wind 
> barb length?

It's already coded up as such, it's just a matter of exposing it as a 
keyword.  I didn't do it already because I didn't want the alphabet 
soup.  But I guess since I'm already parsing the **kw dictionary, 
popping off a few more values isn't too bad...

> 
> This will be a wonderful addition to matplotlib.  Thanks!
> 
> -Jeff
> 
> P.S.  eagerly awaiting your Skew-T implementation ....

You and every other met I know...It's a good thing I want this so badly, 
because having struggled with it I understand why there's so few 
implementations out there.  Wind barbs actually came as a nice little 
distraction to learn a bit of the matplotlib API before trying to get 
the Skew-T right again.

Ryan

-- 
Ryan May
Graduate Research Assistant
School of Meteorology
University of Oklahoma

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to