## matplotlib-users

 [Matplotlib-users] to build barbs in quiver resultant vector From: nappie74 - 2007-06-08 13:15:25 ```Hi, I'm new in matplolib code, I have matrix of winds vectors derivated from quiver introducing U,V components,and positioning these in a sorted grid X,Y with the command quiver (x, y, u, v,color='r') It's possible to put in the figure the barbs to every arrow vector or scaling the arrow with the values of its lenght derived by >>> r = sqrt((U**2)+(V**2)) Thanks a lot to averyone give me help >----(^_^)----< Pie -- View this message in context: http://www.nabble.com/to-build-barbs-in-quiver-resultant-vector-tf3889736.html#a11026235 Sent from the matplotlib - users mailing list archive at Nabble.com. ```
 Re: [Matplotlib-users] to build barbs in quiver resultant vector From: Jeff Whitaker - 2007-06-08 15:35:38 ```nappie74 wrote: > Hi, > I'm new in matplolib code, > I have matrix of winds vectors derivated from quiver introducing U,V > components,and positioning these in a sorted grid X,Y > with the command quiver (x, y, u, v,color='r') > It's possible to put in the figure the barbs to every arrow vector or > scaling the arrow with the values of its lenght derived by >>> r = > sqrt((U**2)+(V**2)) > Thanks a lot to averyone give me help > >> ----(^_^)----< >> > > Pie > Pie: quiver scales the vectors automatically, based upon their magnitude. See the docs at http://matplotlib.sourceforge.net/matplotlib.pylab.html#-quiver See in particular the 'scale' and 'units' keywords. The 'quiver_demo.py' might help too. If you're asking about wind barbs (http://www.rap.ucar.edu/weather/info/about_windbarb.html), there isn't currently a built-in facility for that in matplotlib. -Jeff -- Jeffrey S. Whitaker Phone : (303)497-6313 Meteorologist FAX : (303)497-6449 NOAA/OAR/PSD R/PSD1 Email : Jeffrey.S.Whitaker@... 325 Broadway Office : Skaggs Research Cntr 1D-124 Boulder, CO, USA 80303-3328 Web : http://tinyurl.com/5telg ```
 Re: [Matplotlib-users] to build barbs in quiver resultant vector From: nappie74 - 2007-06-11 07:22:49 ``` nappie74 wrote: > Hi, > I'm new in matplolib code, > I have matrix of winds vectors Hi, thanks, yes infact wind barbs it's difficult to plot with quiver I have to coding something appropiate. So ,just I HAVE FOR THE MOMENT TO PLOT ONLY A LEGEND with one wind vector that have a lenght autoscaled like quiver: this vector is for example 5 m/s and for the other vectors everyone can make an idea of intensity. the legend facilty make this or is there an other way in quiver commands. --Pie -- View this message in context: http://www.nabble.com/to-build-barbs-in-quiver-resultant-vector-tf3889736.html#a11056084 Sent from the matplotlib - users mailing list archive at Nabble.com. ```
 Re: [Matplotlib-users] INTERPOLATION EXTRA DATA From: Jeff Whitaker - 2007-07-09 14:36:17 ```nappie74 wrote: > Hi, > I have to interpolated extra scattered data added in 2d map with grid > regular data. > Is there any command to krigged or linear weighted interpolating this values > with prexisting grid data and plotting the result using basemap. > Thanks in advance. > Pie. > Pie: Sorry, no - that's beyond the capabilities of matplotlib and basemap. You might take a look at http://sgems.sourceforge.net/ it does kriging, and appears to have a python interface. -Jeff -- Jeffrey S. Whitaker Phone : (303)497-6313 NOAA/OAR/CDC R/PSD1 FAX : (303)497-6449 325 Broadway Boulder, CO, USA 80305-3328 ```
 Re: [Matplotlib-users] to build barbs in quiver resultant vector From: Eric Firing - 2007-06-11 07:37:10 ```nappie74 wrote: > > > nappie74 wrote: >> Hi, >> I'm new in matplolib code, >> I have matrix of winds vectors > > Hi, thanks, yes infact wind barbs it's difficult to plot with quiver I have > to coding something appropiate. > So ,just I HAVE FOR THE MOMENT TO PLOT ONLY A LEGEND with one wind vector > that have a lenght autoscaled like quiver: this vector is for example 5 m/s > and for the other vectors everyone can make an idea of intensity. the legend > facilty make this or is there an other way in quiver commands. > --Pie > In the mpl examples directory look at quiver_demo.py, which illustrates the quiverkey function. Eric ```