|
From: <md...@us...> - 2009-04-29 15:28:41
|
Revision: 7069
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=7069&view=rev
Author: mdboom
Date: 2009-04-29 15:28:33 +0000 (Wed, 29 Apr 2009)
Log Message:
-----------
Fix bug in Cairo backend due to changes in convert_path, reported by Michiel de Hoon
Modified Paths:
--------------
trunk/matplotlib/lib/matplotlib/backends/backend_cairo.py
Modified: trunk/matplotlib/lib/matplotlib/backends/backend_cairo.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/backends/backend_cairo.py 2009-04-28 19:48:18 UTC (rev 7068)
+++ trunk/matplotlib/lib/matplotlib/backends/backend_cairo.py 2009-04-29 15:28:33 UTC (rev 7069)
@@ -122,8 +122,7 @@
tpath, affine = clippath.get_transformed_path_and_affine()
ctx.new_path()
affine = affine + Affine2D().scale(1.0, -1.0).translate(0.0, self.height)
- tpath = affine.transform_path(tpath)
- RendererCairo.convert_path(ctx, tpath)
+ RendererCairo.convert_path(ctx, tpath, affine)
ctx.clip()
def _fill_and_stroke (self, ctx, fill_c, alpha):
@@ -184,9 +183,8 @@
ctx = self.ctx
ctx.save()
if clippath is not None:
- tpath = clippath_trans.transform_path(clippath)
ctx.new_path()
- RendererCairo.convert_path(ctx, tpath)
+ RendererCairo.convert_path(ctx, clippath, clippath_trans)
ctx.clip()
y = self.height - y - rows
ctx.set_source_surface (surface, x, y)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|