Sign In | Register Now About Bytes | Help | Site Map
Connecting Tech Pros Worldwide

How to plot wind vector field?

Question posted by: SpeedMath (Newbie) on June 26th, 2008 10:07 AM
Actually, I already "compute out my wind vectors" in my case study by using Python.
I couldn't find any information for plotting my wind vector field by using Python command.I intend to plot this kind of wind vector field as below.



I just found this type of command in googling,

arrow(self, x, y, dx, dy, **kwargs)
obtained from
http://matplotlib.sourceforge.net/m...lot.html#-arrow
http://matplotlib.sourceforge.net/m....html#-plotfile

I still don't know whether can use, and still have no idea to write out this type of plotting in Python.

Hope that anyone can guide me in Python.Any Python commands to plot the wind vector field?

Thanks.
jlm699's Avatar
jlm699
Needs Regular Fix
313 Posts
June 26th, 2008
12:49 PM
#2

Re: How to plot wind vector field?
I've used matplotlib before for a dynamic data viewer application and it is very easy to pick up, especially if you're already familiar with MatLab (which the commands are based off of).

There are plenty of tutorials out there of how to implement this library. You don't have to look any further than the home page for matplotlib, as there are plenty of things to get you started there.

Reply
SpeedMath's Avatar
SpeedMath
Newbie
10 Posts
June 26th, 2008
01:56 PM
#3

Re: How to plot wind vector field?
Quote:
I've used matplotlib before for a dynamic data viewer application and it is very easy to pick up, especially if you're already familiar with MatLab (which the commands are based off of).

There are plenty of tutorials out there of how to implement this library. You don't have to look any further than the home page for matplotlib, as there are plenty of things to get you started there.

So, how do I start?Just go for MatLab to find this library and codes?But, my project is use Python to plot this wind vector field.

Can jlm give me more guides?thanks.

Reply
jlm699's Avatar
jlm699
Needs Regular Fix
313 Posts
June 26th, 2008
02:55 PM
#4

Re: How to plot wind vector field?
Quote:
So, how do I start?

Go to the matplotlib website linked in my last post, download the module, and follow one of the many tutorials to get you up and running. Try it yourself and if you run into any snags let us know the offending code, and the associated error message.

A lot of people have been coming to this forum and trying to ask us to write code on their behalf, but this is not the purpose. We are here to help you when you run into a problem that you cannot overcome or that is perplexing you. If you do not care to even try to solve the problem yourself, we cannot help you.

Reply
fordie1000's Avatar
fordie1000
Newbie
28 Posts
June 26th, 2008
04:22 PM
#5

Re: How to plot wind vector field?
hi,

I have used matplotlib a lot and I am interested in plotting a similar
type plot to your wind vector one. I was to show CCD chip pixel distortions
and I think this would be a nice way to show it.

Anyway, I do agree with Jim that the only way you will accomplish
what you want to do is to get matplotlib installed and do some of the
tutorials to help you get the feel for it. Once you get some of the way
into it I would be willing to help with completing the code (yes ... for my
own selfish reasons!) with you.

Post the code that you have completed and I'll try to help you. If you
do manage to get it completed it'd be great if you'd post the completed
code for others (like me).

Reply
SpeedMath's Avatar
SpeedMath
Newbie
10 Posts
July 1st, 2008
12:59 AM
#6

Re: How to plot wind vector field?
Quote:
hi,

I have used matplotlib a lot and I am interested in plotting a similar
type plot to your wind vector one. I was to show CCD chip pixel distortions
and I think this would be a nice way to show it.

Anyway, I do agree with Jim that the only way you will accomplish
what you want to do is to get matplotlib installed and do some of the
tutorials to help you get the feel for it. Once you get some of the way
into it I would be willing to help with completing the code (yes ... for my
own selfish reasons!) with you.

Post the code that you have completed and I'll try to help you. If you
do manage to get it completed it'd be great if you'd post the completed
code for others (like me).



Thanks for helping me.^^
I already found how to plot my wind field.
But, there is some problem on my graphic.
I do not know why there is an empty rectangular box in the middle of my graphic.

Can you help me to explain why?
or..
perhaps I did wrongly in some computation or..





Reply
SpeedMath's Avatar
SpeedMath
Newbie
10 Posts
July 1st, 2008
08:59 AM
#7

Re: How to plot wind vector field?
Quote:
Thanks for helping me.^^
I already found how to plot my wind field.
But, there is some problem on my graphic.
I do not know why there is an empty rectangular box in the middle of my graphic.

Can you help me to explain why?
or..
perhaps I did wrongly in some computation or..




I already rectified the error.
I have done it.^^

Reply
Reply
Not the answer you were looking for? Post your question . . .
189,871 Experts ready to help you find a solution.
Sign up for a free account, or Login (if you're already a member).

Latest Articles: Read & Comment
Top Python Forum Contributors