[SciPy-user] Plotting vector field + velocity magnitude in background

wbrevis wbrevis@gmail....
Mon Nov 10 17:35:56 CST 2008

Hello all,

I'm trying to plot one of my experimental data using scipy. Until now,
all the work I did was using Matlab. For one of my normal data-
visualization, I read ASCII or Binary files containing 4 columns: The
first contains the x coordinate, the second the y one, and the third
and fourth columns the velocity in the x and y directions (u and v),
i.e. file= x y u v (ordered in columns). After reading the data in
Matlab, I normally do: pcolor(x,y,sqrt(u.^2+v.^2)), in order to
visualize in colors the velocity magnitude and then quiver(x,y,u,v) in
order to see the associated vectors. I was reading the manual of
scipy, including the plotting tools, but I am a bit lost (too much
information to start). Can somebody help me with suggestions on how to
read data using scipy and the best way to plot (pcolor+quiver)?. What
about the function quiver3d of mlab, can be used for 2d representation
of a flow field, together with surf (also mlab).

Thank you in advance for your help and suggestions

W. Brevis

More information about the SciPy-user mailing list