8000 Update examples/shapes_and_collections/hatches_styles.py · matplotlib/matplotlib@84328ff · GitHub
[go: up one dir, main page]

Skip to content

Commit 84328ff

Browse files
forrestmQuLogic
andauthored
Update examples/shapes_and_collections/hatches_styles.py
Use numpy column stack instead of list(zip()) Co-authored-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
1 parent 78b4f74 commit 84328ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/shapes_and_collections/hatches_styles.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
x = np.repeat([1, 4, 7, 10, 13], 2)
1616
y = np.tile([2, 5], 5)
1717

18-
pos = np.array(list(zip(x, y)))
18+
pos = np.column_stack((x, y))
1919
text_pos = pos + [0.9, -0.5]
2020

2121
hashes = ['/', '\\', '|', '-', '+', 'x', 'o', 'O', '.', '*']

0 commit comments

Comments
 (0)
0