Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3a7c864

Browse files
committed
Small bugfix in pdf backend
svn path=/trunk/matplotlib/; revision=3797
1 parent e86abdc commit 3a7c864

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

lib/matplotlib/backends/backend_pdf.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1435,9 +1435,8 @@ def mytrans(x1, y1):
14351435
return x+x1, y+y1
14361436
else:
14371437
def mytrans(x1, y1, x=x, y=y, a=angle / 180.0 * pi):
1438-
x1 = x + cos(a)*x1 - sin(a)*y1
1439-
y1 = y + sin(a)*x1 + cos(a)*y1
1440-
return x1, y1
1438+
return x + cos(a)*x1 - sin(a)*y1, \
1439+
y + sin(a)*x1 + cos(a)*y1
14411440

14421441
self.check_gc(gc, gc._rgb)
14431442
self.file.output(Op.begin_text)

0 commit comments

Comments
 (0)