Public bug reported:

Description:    Ubuntu 9.04
Release:        9.04
python-matplotlib:
  Installed: 0.98.5.2-1ubuntu3
  Candidate: 0.98.5.2-1ubuntu3
  Version table:
 *** 0.98.5.2-1ubuntu3 0
        500 http://gb.archive.ubuntu.com jaunty/universe Packages
        100 /var/lib/dpkg/status

quiver plots fail when the 2D array is non-square and no 2D x,y arrays
are specified. This bug looks pretty much like Bug #134919.

Looks like some confusion on row/column major notation :-(

import numpy
import pylab

x=numpy.arange(0,10)+10
y=numpy.arange(0,15)

a=numpy.zeros((len(y),len(x)))
a[0,:2] = 1
a[1,:2] = 3

# fails
#pylab.quiver(a,a)
#pylab.show()

# fails
#pylab.quiver(y,x,a,a)
#pylab.show()

# works
xx,yy = numpy.meshgrid(x,y)
pylab.quiver(xx,yy,a,a)
pylab.show()

** Affects: matplotlib (Ubuntu)
     Importance: Undecided
         Status: New

-- 
quiver fails for non-square arrays
https://bugs.launchpad.net/bugs/405354
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to