Revision: 4345
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=4345&view=rev
Author: mdboom
Date: 2007-11-16 12:29:51 -0800 (Fri, 16 Nov 2007)
Log Message:
-----------
Minor speed improvement.
Modified Paths:
--------------
branches/transforms/lib/matplotlib/transforms.py
Modified: branches/transforms/lib/matplotlib/transforms.py
===================================================================
--- branches/transforms/lib/matplotlib/transforms.py 2007-11-16 20:17:05 UTC
(rev 4344)
+++ branches/transforms/lib/matplotlib/transforms.py 2007-11-16 20:29:51 UTC
(rev 4345)
@@ -1215,8 +1215,8 @@
def transform(self, points):
mtx = self.get_matrix()
if isinstance(points, MaskedArray):
- points = ma.dot(mtx[0:2, 0:2], points.transpose()) + mtx[0:2, 2:]
- return points.transpose()
+ tpoints = affine_transform(points.data, mtx)
+ return ma.MaskedArray(tpoints, mask=ma.getmask(points))
return affine_transform(points, mtx)
def transform_point(self, point):
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins