Skip to content

Commit 5aaf547

Browse files
committed
Fix rectangle for horizontal colorbar with hatches
1 parent 9b1fcf6 commit 5aaf547

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎lib/matplotlib/colorbar.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@ def _add_solids_patches(self, X, Y, C, mappable):
610610
hatches = mappable.hatches * len(C) # Have enough hatches.
611611
patches = []
612612
for i in range(len(X) - 1):
613-
xy = np.array([[X[i, 0], Y[i, 0]],
613+
xy = np.array([[X[i, 0], Y[i, 1]],
614614
[X[i, 1], Y[i, 0]],
615615
[X[i + 1, 1], Y[i + 1, 0]],
616616
[X[i + 1, 0], Y[i + 1, 1]]])

0 commit comments

Comments
 (0)