473,387 Members | 1,493 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

How to plot wind vector field?

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/ma...ot.html#-arrow
http://matplotlib.sourceforge.net/ma...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.
Jun 26 '08 #1
6 13806
jlm699
314 100+
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.
Jun 26 '08 #2
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.
Jun 26 '08 #3
jlm699
314 100+
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.
Jun 26 '08 #4
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).
Jun 26 '08 #5
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..



Jul 1 '08 #6
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.^^
Jul 1 '08 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Dr. Colombes | last post by:
Using MatPlotLib plot function, is there a way to get variable size plot symbols? For example, using symbol strings like 'o' (circle), 's' (square), 'x' (cross), etc., is there a way to specify...
0
by: wongjoekmeu | last post by:
Hello All, I am using matplotlib0.8. With the quiver function I have tried to plot a vector. However for some reason I do not get what I want. I have problem with the S (according the comments a...
3
by: Sloan | last post by:
I want to use MFC to plot Sin Wave . How can I do ?
5
by: Taylor Howell | last post by:
Hello all, I have a delima. I have 8 5bit numbers that I need to pack into one (or more) variables. They then must be written (exactly 40bits (5Bytes)) to a file and have the ability to be put...
8
by: questions? | last post by:
I want to make a 3d plot. x is a vector(discrete), y is also a vector(discrete), for each pairwise x,y I have a value z(x,y)(it is not a function, just discrete values for each pair of x,y) I...
0
by: toton | last post by:
Hi, for my project I needs a few plots to visualize the data (mostly x-y plot) . Most of the existing plotting library either copy the data and do plotting, or takes a data pointer to an 2d x-y...
3
by: khalderon | last post by:
How can I plot functions in C++? Is there a library that can produce jpeg/pdf output? Or something similar? Thanks in advance!
4
by: shuisheng | last post by:
Dear All, I have a question. Assume #include <vector> using namespace std; class A { private:
3
by: afrogazer | last post by:
I am creating a wind rose using a polar bar plot bu the points do not seem to align to the correct angles. Here is the sample code I am using. I can't seem to see anything in the API on how to set...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.