|
From: <jo...@us...> - 2007-09-06 14:46:56
|
Revision: 3797
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=3797&view=rev
Author: jouni
Date: 2007-09-06 07:46:49 -0700 (Thu, 06 Sep 2007)
Log Message:
-----------
Small bugfix in pdf backend
Modified Paths:
--------------
trunk/matplotlib/lib/matplotlib/backends/backend_pdf.py
Modified: trunk/matplotlib/lib/matplotlib/backends/backend_pdf.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/backends/backend_pdf.py 2007-09-06 12:10:07 UTC (rev 3796)
+++ trunk/matplotlib/lib/matplotlib/backends/backend_pdf.py 2007-09-06 14:46:49 UTC (rev 3797)
@@ -1435,9 +1435,8 @@
return x+x1, y+y1
else:
def mytrans(x1, y1, x=x, y=y, a=angle / 180.0 * pi):
- x1 = x + cos(a)*x1 - sin(a)*y1
- y1 = y + sin(a)*x1 + cos(a)*y1
- return x1, y1
+ return x + cos(a)*x1 - sin(a)*y1, \
+ y + sin(a)*x1 + cos(a)*y1
self.check_gc(gc, gc._rgb)
self.file.output(Op.begin_text)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|