Vector Arrows in Image Plots

Hi, I am excited about the relatively new imshow and

    > pcolor features in matplotlib. I am using numarray to
    > reduce/diagnose planetary atmospheres simulations, which
    > consist of temperature and velocity data on gridpoints in
    > longitude, latitude, and pressure.

    > In addition to contour plots, which is on the goals list
    > for this project, I would like a feature added that allows
    > me to make velocity arrows overlaying the pcolor or imshow
    > images, as is common in meteorology maps. Will such a
    > feature be available in matplotlib, and if so, how soon?
    > Thanks for all the great work so far!

Hi Curtis,

Actually this is on the goals page, listed as 2D vector plots - could
be more descriptive there. So yes, it is a priority. But I can't
really give an estimate at this point of when it will be done.

Working in your favor is that it should be fairly easy now that line
collections exist. These were implemented in 0.54 and allow the fast
drawing of a bunch of independent line segments, which both contours
and vector fields have. Now that the infrastructure exists to do
these efficiently, it makes it more likely that they will be added
sooner rather than later. But there are a number of other equally important
features on the TODO list, which is why I don't have a definite
estimate.

As the goals page states

  Priorities can be changed in one of two ways: convincing one of the
  existing developers to make an item a higher priority (for example,
  if many users request the feature) or by helping to add the feature
  yourself (i.e., becoming a new developer).

You've just done option 1. You're invited to try option 2!

Cheers,
JDH

Mr. Hunter,

Thank you for your reply. I am considering trying to develop the 2D
vector field plots myself using line collections, as you suggest.

Cheers,
Curtis

···

On Sat, 12 Jun 2004, John Hunter wrote:

    > Hi, I am excited about the relatively new imshow and
    > pcolor features in matplotlib. I am using numarray to
    > reduce/diagnose planetary atmospheres simulations, which
    > consist of temperature and velocity data on gridpoints in
    > longitude, latitude, and pressure.

    > In addition to contour plots, which is on the goals list
    > for this project, I would like a feature added that allows
    > me to make velocity arrows overlaying the pcolor or imshow
    > images, as is common in meteorology maps. Will such a
    > feature be available in matplotlib, and if so, how soon?
    > Thanks for all the great work so far!

Hi Curtis,

Actually this is on the goals page, listed as 2D vector plots - could
be more descriptive there. So yes, it is a priority. But I can't
really give an estimate at this point of when it will be done.

Working in your favor is that it should be fairly easy now that line
collections exist. These were implemented in 0.54 and allow the fast
drawing of a bunch of independent line segments, which both contours
and vector fields have. Now that the infrastructure exists to do
these efficiently, it makes it more likely that they will be added
sooner rather than later. But there are a number of other equally important
features on the TODO list, which is why I don't have a definite
estimate.

As the goals page states

  Priorities can be changed in one of two ways: convincing one of the
  existing developers to make an item a higher priority (for example,
  if many users request the feature) or by helping to add the feature
  yourself (i.e., becoming a new developer).

You've just done option 1. You're invited to try option 2!

Cheers,
JDH