Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cbcc627

Browse files
committed
Merged revisions 7745 via svnmerge from
https://matplotlib.svn.sourceforge.net/svnroot/matplotlib/branches/v0_99_maint ........ r7745 | efiring | 2009-09-11 10:48:10 -1000 (Fri, 11 Sep 2009) | 2 lines Fix bug in quiver angle kwarg, found when input angle array is not 1-D ........ svn path=/trunk/matplotlib/; revision=7748
1 parent e86e325 commit cbcc627

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lib/matplotlib/quiver.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -512,6 +512,7 @@ def _make_verts(self, U, V):
512512
theta = np.angle(uv)
513513
else:
514514
theta = ma.masked_invalid(self.angles, copy=False).filled(0)
515+
theta = theta.ravel()
515516
theta *= (np.pi/180.0)
516517
theta.shape = (theta.shape[0], 1) # for broadcasting
517518
xy = (X+Y*1j) * np.exp(1j*theta)*self.width

0 commit comments

Comments
 (0)