Skip to content

Commit

Permalink
No need to use xrange for a short loop
Browse files Browse the repository at this point in the history
fixes python3
  • Loading branch information
jenshnielsen committed Nov 22, 2014
1 parent 60cfdfc commit 58019df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/pylab_examples/animation_demo.py
Expand Up @@ -13,7 +13,7 @@
y = np.arange(5)
z = x * y[:, np.newaxis]

for i in xrange(5):
for i in range(5):
if i == 0:
p = plt.imshow(z)
fig = plt.gcf()
Expand Down

0 comments on commit 58019df

Please sign in to comment.