We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 81be3d6 commit 4b7cd92Copy full SHA for 4b7cd92
lib/matplotlib/quiver.py
@@ -500,6 +500,10 @@ def _h_arrows(self, length):
500
minsh = self.minshaft * self.headlength
501
N = len(length)
502
length = length.reshape(N, 1)
503
+ # This number is chosen based on when pixel values overflow in Agg
504
+ # causing rendering errors
505
+ length = np.minimum(length, 2 ** 16)
506
+
507
# x, y: normal horizontal arrow
508
x = np.array([0, -self.headaxislength,
509
-self.headlength, 0], np.float64)
0 commit comments