Skip to content

Commit 3e5aa3a

Browse files
committed
Switch from > to !=, since maybe valid for minsh to be negative here.
1 parent 70fdd6e commit 3e5aa3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/quiver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -702,7 +702,7 @@ def _h_arrows(self, length):
702702
X0 = x0.take(ii)
703703
Y0 = y0.take(ii)
704704
Y0[3:-1] *= -1
705-
shrink = length / minsh if minsh > 0. else 0.
705+
shrink = length / minsh if minsh != 0. else 0.
706706
X0 = shrink * X0[np.newaxis, :]
707707
Y0 = shrink * Y0[np.newaxis, :]
708708
short = np.repeat(length < minsh, 8, axis=1)

0 commit comments

Comments
 (0)