Revision: 7504
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=7504&view=rev
Author:   mdboom
Date:     2009-08-18 22:13:11 +0000 (Tue, 18 Aug 2009)

Log Message:
-----------
Fix clipping on collections.

Modified Paths:
--------------
    trunk/matplotlib/lib/matplotlib/collections.py

Modified: trunk/matplotlib/lib/matplotlib/collections.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/collections.py      2009-08-18 21:59:07 UTC 
(rev 7503)
+++ trunk/matplotlib/lib/matplotlib/collections.py      2009-08-18 22:13:11 UTC 
(rev 7504)
@@ -208,8 +208,7 @@
         transform, transOffset, offsets, paths = self._prepare_points()
 
         gc = renderer.new_gc()
-        gc.set_clip_rectangle(self.get_clip_box())
-        gc.set_clip_path(self.get_clip_path())
+        self._set_gc_clip(gc)
 
         renderer.draw_path_collection(
             gc, transform.frozen(), paths, self.get_transforms(),
@@ -1210,8 +1209,7 @@
             transOffset = transOffset.get_affine()
 
         gc = renderer.new_gc()
-        gc.set_clip_rectangle(self.get_clip_box())
-        gc.set_clip_path(self.get_clip_path())
+        self._set_clip_gc(gc)
 
         if self._shading == 'gouraud':
             triangles, colors = self.convert_mesh_to_triangles(


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to