8000 Committing this file so I can rename it · matplotlib/matplotlib@9bca927 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9bca927

Browse files
committed
Committing this file so I can rename it
svn path=/branches/transforms/; revision=3849
1 parent 6494ec5 commit 9bca927

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

lib/matplotlib/affine.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -847,12 +847,8 @@ def interval_contains_open(interval, val):
847847
# assert (tpoints1 == tpoints2).all()
848848

849849
# Here are some timing tests
850-
points = [(random(), random()) for i in xrange(10000)]
850+
points = npy.asarray([(random(), random()) for i in xrange(10000)])
851851
t = timeit.Timer("trans_sum(points)", "from __main__ import trans_sum, points")
852-
print "Time to transform 10000 x 10 points as tuples:", t.timeit(10)
853-
854-
points2 = npy.asarray(points)
855-
t = timeit.Timer("trans_sum(points2)", "from __main__ import trans_sum, points2")
856-
print "Time to transform 10000 x 10 points as numpy array:", t.timeit(10)
852+
print "Time to transform 10000 x 10 points:", t.timeit(10)
857853

858854
__all__ = ['Transform', 'Affine2D']

0 commit comments

Comments
 (0)
0