8000 SC 2005/03/11 · matplotlib/matplotlib@ada7afc · GitHub
[go: up one dir, main page]

Skip to content

Commit ada7afc

Browse files
author
Steve Chaplin
committed
SC 2005/03/11
svn path=/trunk/matplotlib/; revision=1067
1 parent aad3cfd commit ada7afc

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

lib/matplotlib/backends/backend_cairo.py

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,9 @@ def draw_lines(self, gc, x, y, transform=None):
203203
ctx.set_matrix (matrix_old)
204204

205205

206-
def draw_markers(self, gc, path, x, y, transform):
206+
#def draw_markers(self, gc, path, x, y, transform):
207+
def _draw_markers(self, gc, path, rgbFace, x, y, transform):
208+
# TODO 'path' has changed - needs updating
207209
if DEBUG: print 'backend_cairo.RendererCairo.%s()' % _fn_name()
208210

209211
ctx = gc.ctx
@@ -234,20 +236,23 @@ def generate_path (path):
234236
ctx.line_to (p[1], -p[2])
235237
elif code == ENDPOLY:
236238
ctx.close_path()
237-
if p[1]: # fill
238-
#rgba = p[2:]
239-
return p[2:5] # don't really want to read the same fill_rgb every time we generate_path()
240-
return None
239+
#if p[1]: # fill
240+
# #rgba = p[2:]
241+
# return p[2:5] # don't really want to read the same fill_rgb every time we generate_path()
242+
#return None
241243

242244
for x,y in izip(x,y):
243245
ctx.save()
244246
ctx.new_path()
245247
ctx.translate(x, self.height - y)
246248

247-
fill_rgb = generate_path (path)
248-
if fill_rgb:
249+
#fill_rgb = generate_path (path)
250+
generate_path (path)
251+
#if fill_rgb:
252+
if rgbFace:
249253
ctx.save()
250-
ctx.set_rgb_color (*fill_rgb)
254+
#ctx.set_rgb_color (*fill_rgb)
255+
ctx.set_rgb_color (rgbFace)
251256
# later - set alpha also?
252257
ctx.fill()
253258
ctx.restore() # undo colour change and restore path

0 commit comments

Comments
 (0)
0