Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo
Close
From: nappie74 <napolpie@ti...>  20070608 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/tobuildbarbsinquiverresultantvectortf3889736.html#a11026235 Sent from the matplotlib  users mailing list archive at Nabble.com. 
From: Jeff Whitaker <jswhit@fa...>  20070608 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 builtin facility for that in matplotlib. Jeff  Jeffrey S. Whitaker Phone : (303)4976313 Meteorologist FAX : (303)4976449 NOAA/OAR/PSD R/PSD1 Email : Jeffrey.S.Whitaker@... 325 Broadway Office : Skaggs Research Cntr 1D124 Boulder, CO, USA 803033328 Web : http://tinyurl.com/5telg 
From: nappie74 <napolpie@ti...>  20070611 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/tobuildbarbsinquiverresultantvectortf3889736.html#a11056084 Sent from the matplotlib  users mailing list archive at Nabble.com. 
From: Jeff Whitaker <jswhit@fa...>  20070709 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)4976313 NOAA/OAR/CDC R/PSD1 FAX : (303)4976449 325 Broadway Boulder, CO, USA 803053328 
From: Eric Firing <efiring@ha...>  20070611 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 