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

Skip to content

Commit 1e6ccde

Browse files
committed
fixed a backend_template draw_arc bug
svn path=/trunk/matplotlib/; revision=2758
1 parent 1556aaa commit 1e6ccde

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

lib/matplotlib/backend_bases.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ def close_group(self, s):
3333
"""
3434
pass
3535

36-
def draw_arc(self, gcEdge, rgbFace, x, y, width, height, angle1, angle2, rotation):
36+
37+
def draw_arc(self, gc, rgbFace, x, y, width, height, angle1, angle2, rotation):
3738
"""
3839
Draw an arc using GraphicsContext instance gcEdge, centered at x,y,
3940
with width and height and angles from 0.0 to 360.0

lib/matplotlib/backends/backend_template.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class RendererTemplate(RendererBase):
6161
writing a new backend. Refer to backend_bases.RendererBase for
6262
documentation of the classes methods.
6363
"""
64-
def draw_arc(self, gcEdge, rgbFace, x, y, width, height, angle1, angle2):
64+
def draw_arc(self, gc, rgbFace, x, y, width, height, angle1, angle2, rotation):
6565
pass
6666

6767
def draw_image(self, x, y, im, bbox):

0 commit comments

Comments
 (0)