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

Skip to content

Commit 1856ca3

Browse files
committed
DOC: Ensure arrow demo is plotted in consistent order.
1 parent f52afbf commit 1856ca3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

examples/pylab_examples/arrow_demo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ def draw_arrow(pair, alpha=alpha, ec=ec, labelcolor=labelcolor):
214214
plt.text(x, y, label, size=label_text_size, ha='center', va='center',
215215
color=labelcolor or fc)
216216

217-
for p in positions.keys():
217+
for p in sorted(positions):
218218
draw_arrow(p)
219219

220220
# test data

0 commit comments

Comments
 (0)