quiver fails for non-square arrays

Bug #405354 reported by magi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
matplotlib (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

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()

Revision history for this message
Benjamin Drung (bdrung) wrote :

With version 0.98.5.3-1ubuntu1 I can confirm that this command fails:
pylab.quiver(y,x,a,a)

Changed in matplotlib (Ubuntu):
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Benjamin Drung (bdrung) wrote :

With matplotlib 0.99.0-1ubuntu1 nothing crashed any more. So this bug is fixed in karmic.

Changed in matplotlib (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.