Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e8ad856 commit 70bc3e8Copy full SHA for 70bc3e8
8 files changed
lib/matplotlib/backends/backend_agg2.py
@@ -87,7 +87,7 @@ def draw_lines(self, gc, x, y, trans):
87
def draw_markers(self, gc, path, rgbFace, xt, yt, trans):
88
pass
89
90
- def draw_arc(self, gcEdge, rgbFace, x, y, width, height, angle1, angle2):
+ def draw_arc(self, gcEdge, rgbFace, x, y, width, height, angle1, angle2, rotation):
91
92
93
def draw_image(self, x, y, im, origin, bbox):
lib/matplotlib/backends/backend_emf.py
@@ -151,7 +151,7 @@ def __init__(self, outfile, width, height, dpi):
151
def save(self):
152
self.emf.save(self.outfile)
153
154
155
"""
156
Draw an arc using GraphicsContext instance gcEdge, centered at x,y,
157
with width and height and angles from 0.0 to 360.0
lib/matplotlib/backends/backend_gd.py
@@ -86,7 +86,7 @@ def flipy(self):
86
return True
- def draw_arc(self, gc, rgbFace, x, y, width, height, angle1, angle2):
+ def draw_arc(self, gc, rgbFace, x, y, width, height, angle1, angle2, rotation):
Draw an arc centered at x,y with width and height and angles
from 0.0 to 360.0
lib/matplotlib/backends/backend_gdk.py
@@ -86,18 +86,18 @@ def set_width_height (self, width, height):
self.width, self.height = width, height
x, y = int(x-0.5*width), self.height-int(y+0.5*height)
w, h = int(width)+1, int(height)+1
a1, a2 = int(angle1*64), int(angle2*64)
94
if rgbFace:
95
saveColor = gc.gdkGC.foreground
96
gc.gdkGC.foreground = gc.rgb_to_gdk_color(rgbFace)
97
- self.gdkDrawable.draw_arc(gc.gdkGC, True, x, y, w, h, a1, a2)
+ self.gdkDrawable.draw_arc(gc.gdkGC, True, x, y, w, h, a1, a2, rotation)
98
gc.gdkGC.foreground = saveColor
99
if gc.gdkGC.line_width > 0:
100
- self.gdkDrawable.draw_arc(gc.gdkGC, False, x, y, w, h, a1, a2)
+ self.gdkDrawable.draw_arc(gc.gdkGC, False, x, y, w, h, a1, a2, rotation)
101
102
103
def draw_image(self, x, y, im, bbox):
lib/matplotlib/backends/backend_paint.py
@@ -120,7 +120,7 @@ def get_paint_color(self, rgb):
120
r,g,b = rgb
121
return paint.rgb(int(r*255),int(g*255),int(b*255))
122
123
124
125
126
from 0.0 to 360.0.
lib/matplotlib/backends/backend_svg.py
@@ -185,7 +185,7 @@ def draw_lines(self, gc, x, y, transform=None):
185
186
def draw_point(self, gc, x, y):
187
# result seems to have a hole in it...
188
- self.draw_arc(gc, gc.get_rgb(), x, y, 1, 0, 0, 0)
+ self.draw_arc(gc, gc.get_rgb(), x, y, 1, 0, 0, 0, 0)
189
190
def draw_polygon(self, gc, rgbFace, points):
191
details = 'points = "%s"' % ' '.join(['%f,%f'%(x,self.height-y)
lib/matplotlib/backends/backend_wx.py
@@ -275,7 +275,7 @@ def get_canvas_width_height(self):
275
return self.width, self.height
276
277
278
279
280
281
lib/matplotlib/text.py
@@ -353,8 +353,6 @@ def draw(self, renderer):
353
#print 'xy', self._x, self._y, info
354
for line, wh, x, y in info:
355
x, y = self._transform.xy_tup((x, y))
356
- #renderer.draw_arc(gc, (1,0,0),
357
- # x, y, 2, 2, 0.0, 360.0)
358
359
if renderer.flipy():
360
canvasw, canvash = renderer.get_canvas_width_height()
0 commit comments