From: <jr...@us...> - 2007-10-05 16:29:19
|
Revision: 3920 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=3920&view=rev Author: jrevans Date: 2007-10-05 09:29:17 -0700 (Fri, 05 Oct 2007) Log Message: ----------- Fixed a typo in the Ellipse code that was causing the ellipse angle to go in the wrong direction. When I was testing I had forgotten to turn off the axes inversion test. Modified Paths: -------------- trunk/matplotlib/lib/matplotlib/patches.py Modified: trunk/matplotlib/lib/matplotlib/patches.py =================================================================== --- trunk/matplotlib/lib/matplotlib/patches.py 2007-10-05 06:58:15 UTC (rev 3919) +++ trunk/matplotlib/lib/matplotlib/patches.py 2007-10-05 16:29:17 UTC (rev 3920) @@ -815,8 +815,8 @@ angle = self.angle * math.pi / 180.0 # convert the angle to polar coordinates (Assume r = 1.0) - anglex = math.cos(-angle) - angley = math.sin(-angle) + anglex = math.cos(angle) + angley = math.sin(angle) # transform the angle vertex and the origin angle_verts = npy.array(((anglex, angley), (0.0, 0.0)), npy.float) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |